Skip to content

Commit 4760540

Browse files
committed
Add a new definition to build TruffleRuby from source.
1 parent 0e218b7 commit 4760540

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
build_package_jt() {
2+
unset GEM_HOME GEM_PATH JAVA_HOME
3+
JT_IMPORTS_DONT_ASK=true bin/jt build --env jvm
4+
graalvm=$(bin/jt --use jvm ruby-home)
5+
mv "$graalvm" "$PREFIX_PATH"
6+
}
7+
8+
install_git "truffleruby+graalvm-integration" "https://github.com/Shopify/truffleruby.git" "integration" graalvm jt

rubies/truffleruby-integration

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
build_package_jt() {
2+
unset JAVA_HOME GEM_HOME GEM_PATH
3+
JT_IMPORTS_DONT_ASK=true bin/jt build --env native
4+
graalvm=$(bin/jt --use native ruby-home)
5+
mv "$graalvm" "$PREFIX_PATH"
6+
}
7+
8+
install_git "truffleruby-integration" "https://github.com/Shopify/truffleruby.git" "integration" jt

test/shopify_ruby_definitions/test_ruby_versions.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ def test_ALL_VERSIONS
1515
end
1616

1717
truffleruby_versions.each do |v|
18+
next if v.include?("integration")
19+
1820
assert_match(/\Atruffleruby(?:\+graalvm)?(?:-gftc)?(\-\d+\.\d+\.\d+|-dev)(?:\-ce)?\z/, v)
1921
end
2022
end

0 commit comments

Comments
 (0)