Skip to content

Commit 0fef565

Browse files
committed
Update CI workflow and build and install gems on TruffleRuby and JRuby
1 parent 4bd5264 commit 0fef565

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ jobs:
2828
include:
2929
- { os: windows-latest , ruby: mingw }
3030
- { os: windows-latest , ruby: mswin }
31+
- { os: ubuntu-latest , ruby: truffleruby }
32+
- { os: ubuntu-latest , ruby: jruby }
3133
exclude:
3234
- { os: macos-14 , ruby: '2.5' }
3335
- { os: windows-latest , ruby: '3.0' }
@@ -58,16 +60,23 @@ jobs:
5860
- run: gem install pkg/*.gem
5961

6062
- run: rake test
63+
# Don't run tests on TruffleRuby and JRuby because tests don't pass on them yet
64+
if: >-
65+
matrix.ruby != 'truffleruby' &&
66+
matrix.ruby != 'jruby'
6167
env:
6268
RUBYOPT: --disable=gems
6369

6470
- name: Run test against installed gem
6571
# We can't use Fiddle gem with RubyInstaller because
6672
# RubyInstaller requires Fiddle before rubygems is loaded:
6773
# https://github.com/oneclick/rubyinstaller2/blob/master/lib/ruby_installer/build/dll_directory.rb#L1
74+
#
75+
# Don't run tests on TruffleRuby and JRuby because tests don't pass on them yet
6876
if: >-
69-
matrix.os != 'windows-latest' ||
70-
(matrix.os == 'windows-latest' && matrix.ruby == 'mswin')
77+
(matrix.os != 'windows-latest' ||
78+
(matrix.os == 'windows-latest' && matrix.ruby == 'mswin')) &&
79+
(matrix.ruby != 'truffleruby' && matrix.ruby != 'jruby')
7180
run: |
7281
ruby -run -e cp -- -pr test/ tmp/
7382
cd tmp

0 commit comments

Comments
 (0)