Skip to content

Commit

Permalink
Add truffleruby-head in CI
Browse files Browse the repository at this point in the history
* The latest release does not have this fix:
  oracle/truffleruby@c77f8bb
  • Loading branch information
eregon committed Sep 21, 2023
1 parent 85637fa commit 8abc80b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ jobs:
uses: ruby/actions/.github/workflows/ruby_versions.yml@master
with:
engine: cruby
versions: '["truffleruby-head"]'
min_version: 2.7

build:
Expand All @@ -24,6 +25,8 @@ jobs:
exclude:
- ruby: head
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/zlib/test_zlib.rb
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,7 @@ def test_set_dictionary
end

def test_multithread_deflate
pend 'hangs' if RUBY_ENGINE == 'truffleruby'
zd = Zlib::Deflate.new

s = "x" * 10000
Expand All @@ -522,6 +523,7 @@ def test_multithread_deflate
end

def test_multithread_inflate
pend 'hangs' if RUBY_ENGINE == 'truffleruby'
zi = Zlib::Inflate.new

s = Zlib.deflate("x" * 10000)
Expand Down Expand Up @@ -792,7 +794,7 @@ def test_path
}
end

if defined? File::TMPFILE
if defined?(File::TMPFILE) and RUBY_ENGINE != 'truffleruby'
def test_path_tmpfile
sio = StringIO.new("".dup, 'w')
gz = Zlib::GzipWriter.new(sio)
Expand Down

0 comments on commit 8abc80b

Please sign in to comment.