Skip to content

Add truffleruby-head in CI #62

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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