From 22fb62ac90e6bff692ad294d1b166a11efd04692 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Thu, 17 Oct 2024 19:00:22 +0200 Subject: [PATCH] Add TruffleRuby and TruffleRuby GraalVM 24.1.1 --- share/ruby-build/truffleruby+graalvm-24.1.1 | 19 +++++++++++++++++++ share/ruby-build/truffleruby-24.1.1 | 19 +++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 share/ruby-build/truffleruby+graalvm-24.1.1 create mode 100644 share/ruby-build/truffleruby-24.1.1 diff --git a/share/ruby-build/truffleruby+graalvm-24.1.1 b/share/ruby-build/truffleruby+graalvm-24.1.1 new file mode 100644 index 00000000..1c9a5e44 --- /dev/null +++ b/share/ruby-build/truffleruby+graalvm-24.1.1 @@ -0,0 +1,19 @@ +platform="$(uname -s)-$(uname -m)" +case $platform in +Linux-x86_64) + install_package "truffleruby+graalvm-24.1.1" "https://github.com/oracle/truffleruby/releases/download/graal-24.1.1/truffleruby-jvm-24.1.1-linux-amd64.tar.gz#6abc4adb06249fdb8dc214bc9f18a77754daf1af4c803c539df587f67ef2c1b2" truffleruby + ;; +Linux-aarch64) + install_package "truffleruby+graalvm-24.1.1" "https://github.com/oracle/truffleruby/releases/download/graal-24.1.1/truffleruby-jvm-24.1.1-linux-aarch64.tar.gz#ca59df49bd2f90e1a48959a5b2c200e4aad5034bb307c0dcca82a583316cf0bb" truffleruby + ;; +Darwin-x86_64) + install_package "truffleruby+graalvm-24.1.1" "https://github.com/oracle/truffleruby/releases/download/graal-24.1.1/truffleruby-jvm-24.1.1-macos-amd64.tar.gz#53391186efb75a699479011a8245eab475a1d75769499e654202334f6a058f73" truffleruby + ;; +Darwin-arm64) + install_package "truffleruby+graalvm-24.1.1" "https://github.com/oracle/truffleruby/releases/download/graal-24.1.1/truffleruby-jvm-24.1.1-macos-aarch64.tar.gz#25dae172322e3ab50367f3886ea389515598bc4d56a1444da8d56a3f2d5fa3fb" truffleruby + ;; +*) + colorize 1 "Unsupported platform: $platform" + return 1 + ;; +esac diff --git a/share/ruby-build/truffleruby-24.1.1 b/share/ruby-build/truffleruby-24.1.1 new file mode 100644 index 00000000..08a11e9e --- /dev/null +++ b/share/ruby-build/truffleruby-24.1.1 @@ -0,0 +1,19 @@ +platform="$(uname -s)-$(uname -m)" +case $platform in +Linux-x86_64) + install_package "truffleruby-24.1.1" "https://github.com/oracle/truffleruby/releases/download/graal-24.1.1/truffleruby-24.1.1-linux-amd64.tar.gz#dfe3acfaa54c0993d87cafb5136efb02a5b303e0e0f7570705d8d84bc8c45ce9" truffleruby + ;; +Linux-aarch64) + install_package "truffleruby-24.1.1" "https://github.com/oracle/truffleruby/releases/download/graal-24.1.1/truffleruby-24.1.1-linux-aarch64.tar.gz#de7ef5e8c2f170f2b16fb74ee0941c003e74160c1b60a9464d41b8d33bda6982" truffleruby + ;; +Darwin-x86_64) + install_package "truffleruby-24.1.1" "https://github.com/oracle/truffleruby/releases/download/graal-24.1.1/truffleruby-24.1.1-macos-amd64.tar.gz#f0398a8a7a0b6fd25b9c02a828ea4b9336f126c22c922b45af2489fb076c4450" truffleruby + ;; +Darwin-arm64) + install_package "truffleruby-24.1.1" "https://github.com/oracle/truffleruby/releases/download/graal-24.1.1/truffleruby-24.1.1-macos-aarch64.tar.gz#b1ce8df6f6cb41ac2c413df290a8877a7b2f2fb867f9d966ec4549f73c1942a6" truffleruby + ;; +*) + colorize 1 "Unsupported platform: $platform" + return 1 + ;; +esac