Skip to content

Commit

Permalink
Merge pull request #62 from eregon/truffleruby-ci
Browse files Browse the repository at this point in the history
Add truffleruby-head in CI
  • Loading branch information
hsbt authored Sep 22, 2023
2 parents 85637fa + 8abc80b commit 4284bd0
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 4284bd0

Please sign in to comment.