Skip to content
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

Updates for TruffleRuby 23.1 #294

Merged
merged 2 commits into from
Sep 26, 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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- "macos-12"
- "ubuntu-20.04"
ruby:
- "truffleruby+graalvm-head"
- "truffleruby+graalvm"

name: ${{ matrix.os }} - ${{ matrix.ruby }}
runs-on: ${{ matrix.os }}
Expand All @@ -31,7 +31,7 @@ jobs:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Install GraalVM JS component
run: gu install js
run: truffleruby-polyglot-get js
- name: Compile
run: bundle exec rake compile
- name: Test
Expand Down
3 changes: 1 addition & 2 deletions lib/mini_racer/truffleruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ def init_unsafe(isolate, snapshot)

unless Polyglot.languages.include? "js"
raise "The language 'js' is not available, you likely need to `export TRUFFLERUBYOPT='--jvm --polyglot'`\n" \
"You also need to install the 'js' component with 'gu install js' on GraalVM 22.2+\n" \
"Note that you need TruffleRuby+GraalVM and not just the TruffleRuby standalone to use MiniRacer"
"You also need to install the 'js' component, see https://github.com/oracle/truffleruby/blob/master/doc/user/polyglot.md#installing-other-languages"
end

@context = Polyglot::InnerContext.new(on_cancelled: -> {
Expand Down