diff --git a/rubies/truffleruby+graalvm-integration b/rubies/truffleruby+graalvm-integration new file mode 100644 index 0000000..6f255a9 --- /dev/null +++ b/rubies/truffleruby+graalvm-integration @@ -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 diff --git a/rubies/truffleruby-integration b/rubies/truffleruby-integration new file mode 100644 index 0000000..8029ecf --- /dev/null +++ b/rubies/truffleruby-integration @@ -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 diff --git a/test/shopify_ruby_definitions/test_ruby_versions.rb b/test/shopify_ruby_definitions/test_ruby_versions.rb index 6329d37..b0a1798 100644 --- a/test/shopify_ruby_definitions/test_ruby_versions.rb +++ b/test/shopify_ruby_definitions/test_ruby_versions.rb @@ -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