mirror of
https://github.com/rails/execjs
synced 2023-03-27 23:21:20 -04:00
GraalVM 22.2+ needs gu install js
for JavaScript to be available
This commit is contained in:
parent
5a5d36aeff
commit
c37045ecf6
2 changed files with 5 additions and 0 deletions
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
@ -29,6 +29,10 @@ jobs:
|
||||||
- name: Set TRUFFLERUBYOPT
|
- name: Set TRUFFLERUBYOPT
|
||||||
run: echo "TRUFFLERUBYOPT=--jvm --polyglot" >> $GITHUB_ENV
|
run: echo "TRUFFLERUBYOPT=--jvm --polyglot" >> $GITHUB_ENV
|
||||||
if: startsWith(matrix.ruby, 'truffleruby+graalvm')
|
if: startsWith(matrix.ruby, 'truffleruby+graalvm')
|
||||||
|
- name: Install GraalVM js component
|
||||||
|
run: if ! gu list | grep '^js '; then gu install js; fi
|
||||||
|
if: startsWith(matrix.ruby, 'truffleruby+graalvm')
|
||||||
|
|
||||||
- name: Run test
|
- name: Run test
|
||||||
run: rake
|
run: rake
|
||||||
- name: Install gem
|
- name: Install gem
|
||||||
|
|
|
@ -136,6 +136,7 @@ module ExecJS
|
||||||
|
|
||||||
unless Polyglot.languages.include? "js"
|
unless Polyglot.languages.include? "js"
|
||||||
warn "The language 'js' is not available, you likely need to `export TRUFFLERUBYOPT='--jvm --polyglot'`", uplevel: 0 if $VERBOSE
|
warn "The language 'js' is not available, you likely need to `export TRUFFLERUBYOPT='--jvm --polyglot'`", uplevel: 0 if $VERBOSE
|
||||||
|
warn "You also need to install the 'js' component with 'gu install js' on GraalVM 22.2+", uplevel: 0 if $VERBOSE
|
||||||
warn "Note that you need TruffleRuby+GraalVM and not just the TruffleRuby standalone to use #{self.class}", uplevel: 0 if $VERBOSE
|
warn "Note that you need TruffleRuby+GraalVM and not just the TruffleRuby standalone to use #{self.class}", uplevel: 0 if $VERBOSE
|
||||||
return @available = false
|
return @available = false
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue