Skip to content

Commit

Permalink
Add TruffleRuby in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Oct 17, 2024
1 parent 469a528 commit 2b6b3dd
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/reline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
ruby-versions:
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
with:
engine: cruby
engine: cruby-truffleruby
min_version: 2.6

reline:
Expand All @@ -19,9 +19,16 @@ jobs:
reline ${{ matrix.os }} ${{ matrix.ruby }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
os: [ubuntu-latest, macos-latest, windows-latest]
exclude:
- { ruby: truffleruby, os: windows-latest }
- { ruby: truffleruby-head, os: windows-latest }
# https://github.com/ruby/reline/pull/768#issuecomment-2420586587
- { ruby: truffleruby-head, os: ubuntu-latest }
- { ruby: truffleruby-head, os: macos-latest }
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
Expand All @@ -45,6 +52,7 @@ jobs:
readline ${{ matrix.ruby }} ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- { ruby: head, os: ubuntu-latest }
Expand Down Expand Up @@ -76,6 +84,7 @@ jobs:
irb ${{ matrix.ruby }} ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
os: [ubuntu-latest]
Expand Down Expand Up @@ -117,13 +126,15 @@ jobs:
gem rdoc --all --ri --no-rdoc
bundle install
bundle exec rake test_yamatanooroti
if: ${{ !startsWith(matrix.ruby, 'truffleruby') }}

vterm-yamatanooroti:
needs: ruby-versions
name: >-
vterm-yamatanooroti ${{ matrix.os }} ${{ matrix.ruby }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
os: [ubuntu-latest]
Expand Down

0 comments on commit 2b6b3dd

Please sign in to comment.