-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GR-48237] Backport for 23.1 PRs #3991 and #3993
PullRequest: truffleruby/3996
- Loading branch information
Showing
9 changed files
with
98 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/usr/bin/env bash | ||
|
||
source test/truffle/common.sh.inc | ||
|
||
# Clone Graal.js repository | ||
jt mx --dy /vm,/graal-js sversions | ||
|
||
jt mx --env jvm-js ruby_maven_deploy_public | ||
maven_repo="$(dirname "$(pwd)")/graal/sdk/mxbuild/jdk21/mx.sdk/public-maven-repo" | ||
if [ ! -d "$maven_repo" ]; then | ||
echo "Maven repo not at $maven_repo ?" | ||
exit 2 | ||
fi | ||
|
||
jt build --env jvm-ce | ||
|
||
standalone=$(jt -q mx --quiet --env jvm-ce standalone-home --type=jvm ruby) | ||
|
||
export PATH="$standalone/bin:$PATH" | ||
|
||
env org.graalvm.maven.downloader.repository="file://$maven_repo" truffleruby-polyglot-get js-community | ||
|
||
out=$(ruby --polyglot -e 'p Polyglot.eval("js", "1/2")') | ||
if [ "$out" != "0.5" ]; then | ||
echo "Wrong output: >>$out<<" | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters