Skip to content

Commit

Permalink
Add a new definition to build TruffleRuby from source.
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvdrum committed Aug 6, 2024
1 parent 0e218b7 commit 4760540
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
8 changes: 8 additions & 0 deletions rubies/truffleruby+graalvm-integration
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
build_package_jt() {
unset GEM_HOME GEM_PATH JAVA_HOME
JT_IMPORTS_DONT_ASK=true bin/jt build --env jvm
graalvm=$(bin/jt --use jvm ruby-home)
mv "$graalvm" "$PREFIX_PATH"
}

install_git "truffleruby+graalvm-integration" "https://github.com/Shopify/truffleruby.git" "integration" graalvm jt
8 changes: 8 additions & 0 deletions rubies/truffleruby-integration
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
build_package_jt() {
unset JAVA_HOME GEM_HOME GEM_PATH
JT_IMPORTS_DONT_ASK=true bin/jt build --env native
graalvm=$(bin/jt --use native ruby-home)
mv "$graalvm" "$PREFIX_PATH"
}

install_git "truffleruby-integration" "https://github.com/Shopify/truffleruby.git" "integration" jt
2 changes: 2 additions & 0 deletions test/shopify_ruby_definitions/test_ruby_versions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ def test_ALL_VERSIONS
end

truffleruby_versions.each do |v|
next if v.include?("integration")

assert_match(/\Atruffleruby(?:\+graalvm)?(?:-gftc)?(\-\d+\.\d+\.\d+|-dev)(?:\-ce)?\z/, v)
end
end
Expand Down

0 comments on commit 4760540

Please sign in to comment.