Skip to content

Add a new definition to build TruffleRuby integration branch from source. #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading