Skip to content

Commit f13f3ca

Browse files
authored
Add TruffleRuby in CI (#768)
1 parent 5f5a0aa commit f13f3ca

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

.github/workflows/reline.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
ruby-versions:
1111
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
1212
with:
13-
engine: cruby
13+
engine: cruby-truffleruby
1414
min_version: 2.6
1515

1616
reline:
@@ -19,9 +19,16 @@ jobs:
1919
reline ${{ matrix.os }} ${{ matrix.ruby }}
2020
runs-on: ${{ matrix.os }}
2121
strategy:
22+
fail-fast: false
2223
matrix:
2324
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
2425
os: [ubuntu-latest, macos-latest, windows-latest]
26+
exclude:
27+
- { ruby: truffleruby, os: windows-latest }
28+
- { ruby: truffleruby-head, os: windows-latest }
29+
# https://github.com/ruby/reline/pull/768#issuecomment-2420586587
30+
- { ruby: truffleruby-head, os: ubuntu-latest }
31+
- { ruby: truffleruby-head, os: macos-latest }
2532
timeout-minutes: 30
2633
steps:
2734
- uses: actions/checkout@v4
@@ -45,6 +52,7 @@ jobs:
4552
readline ${{ matrix.ruby }} ${{ matrix.os }}
4653
runs-on: ${{ matrix.os }}
4754
strategy:
55+
fail-fast: false
4856
matrix:
4957
include:
5058
- { ruby: head, os: ubuntu-latest }
@@ -76,6 +84,7 @@ jobs:
7684
irb ${{ matrix.ruby }} ${{ matrix.os }}
7785
runs-on: ${{ matrix.os }}
7886
strategy:
87+
fail-fast: false
7988
matrix:
8089
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
8190
os: [ubuntu-latest]
@@ -117,13 +126,16 @@ jobs:
117126
gem rdoc --all --ri --no-rdoc
118127
bundle install
119128
bundle exec rake test_yamatanooroti
129+
# https://github.com/ruby/reline/pull/768#issuecomment-2420588075
130+
if: ${{ !startsWith(matrix.ruby, 'truffleruby') }}
120131

121132
vterm-yamatanooroti:
122133
needs: ruby-versions
123134
name: >-
124135
vterm-yamatanooroti ${{ matrix.os }} ${{ matrix.ruby }}
125136
runs-on: ${{ matrix.os }}
126137
strategy:
138+
fail-fast: false
127139
matrix:
128140
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
129141
os: [ubuntu-latest]

0 commit comments

Comments
 (0)