mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
* 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
20 lines
657 B
Bash
20 lines
657 B
Bash
#!/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" |