Skip to content

Commit fadb9c7

Browse files
authored
Merge pull request #16 from Shopify/add-truffleruby-head
Add a new definition to build TruffleRuby from source.
2 parents d9e33ef + 4760540 commit fadb9c7

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed
+8
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

+8
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

+2
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)