mirror of
https://github.com/rbenv/ruby-build.git
synced 2025-10-04 23:11:08 +02:00
* See https://github.com/graalvm/graal-languages-ea-builds * These builds are based on Oracle GraalVM.
26 lines
861 B
Text
26 lines
861 B
Text
platform="$(uname -s)-$(uname -m)"
|
|
case $platform in
|
|
Linux-x86_64)
|
|
url="https://raw.githubusercontent.com/graalvm/graal-languages-ea-builds/main/truffleruby/versions/latest-jvm-linux-amd64.url"
|
|
;;
|
|
Linux-aarch64)
|
|
url="https://raw.githubusercontent.com/graalvm/graal-languages-ea-builds/main/truffleruby/versions/latest-jvm-linux-aarch64.url"
|
|
;;
|
|
Darwin-x86_64)
|
|
url="https://raw.githubusercontent.com/graalvm/graal-languages-ea-builds/main/truffleruby/versions/latest-jvm-darwin-amd64.url"
|
|
;;
|
|
Darwin-arm64)
|
|
url="https://raw.githubusercontent.com/graalvm/graal-languages-ea-builds/main/truffleruby/versions/latest-jvm-darwin-aarch64.url"
|
|
;;
|
|
*)
|
|
colorize 1 "Unsupported platform: $platform"
|
|
return 1
|
|
;;
|
|
esac
|
|
|
|
pushd "$BUILD_PATH" >/dev/null
|
|
http get $url url.txt
|
|
url=$(<url.txt)
|
|
popd
|
|
|
|
install_package "truffleruby+graalvm-dev" "$url" truffleruby
|