mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2026-01-03 15:57:26 +08:00
[MacOS] Add GraalVM to macOS 1015 and 11 images (#4959)
* Add GraalVM to macOS 1015 and 11 images * Replace graalVM tests * Resolve comments * Fix native image install command path * Fixing graalvm root path in tests * Fix GRAALVM_11_ROOT path for software report * Fix function name
This commit is contained in:
20
images/macos/provision/core/graalvm.sh
Normal file
20
images/macos/provision/core/graalvm.sh
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash -e -o pipefail
|
||||
source ~/utils/utils.sh
|
||||
|
||||
echo Installing GraalVM...
|
||||
brew install --cask graalvm/tap/graalvm-ce-java11
|
||||
|
||||
exportPath=$(echo /Library/Java/JavaVirtualMachines/graalvm-ce-java*/Contents/Home/bin)
|
||||
echo "Setting up GRAALVM_11_ROOT variable to ${exportPath}"
|
||||
echo "export GRAALVM_11_ROOT=${exportPath}" >> "${HOME}/.bashrc"
|
||||
|
||||
# GraalVM not being signed and notarized yet on macOS Catalina
|
||||
if is_Catalina; then
|
||||
quarantinePath=$(echo /Library/Java/JavaVirtualMachines/graalvm-ce-java*)
|
||||
sudo xattr -rd com.apple.quarantine $quarantinePath
|
||||
fi
|
||||
|
||||
# Install Native Image
|
||||
$exportPath/gu install native-image
|
||||
|
||||
invoke_tests "Common" "GraalVM"
|
||||
Reference in New Issue
Block a user