Skip to content

Commit

Permalink
Merge pull request #115 from andrykonchin/ak/add-truffleruby-on-ci
Browse files Browse the repository at this point in the history
Add TruffleRuby in CI
  • Loading branch information
eregon authored Jan 10, 2025
2 parents ef3a128 + 1e59413 commit c23f41e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
ruby-versions:
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
with:
engine: cruby
engine: cruby-truffleruby
min_version: 2.5

test:
Expand All @@ -19,6 +19,10 @@ jobs:
exclude:
- ruby: 2.5
os: macos-latest
- ruby: truffleruby
os: windows-latest
- ruby: truffleruby-head
os: windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand Down
4 changes: 3 additions & 1 deletion test/logger/test_logdevice.rb
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,9 @@ def test_shifting_size_not_rotate_too_much
logdev1.write(message)
assert_file.identical?(log, logdev1.dev)
# NOTE: below assertion fails in JRuby 9.3 and TruffleRuby
assert_file.identical?(log + ".0", logdev2.dev)
unless %w[jruby truffleruby].include? RUBY_ENGINE
assert_file.identical?(log + ".0", logdev2.dev)
end

logdev2.write(message)
assert_file.identical?(log, logdev1.dev)
Expand Down

0 comments on commit c23f41e

Please sign in to comment.