Skip to content

Conversation

@sgammon
Copy link
Contributor

@sgammon sgammon commented Feb 4, 2025

Fixes:

  • Checksum taken during JDK 21 toolchain #876 ended up out of date due to the release of GraalVM 21.1.2 (the PR was built against 21.1.1), which happened while the PR was being authored. The checksum for linux-aarch64 is updated.

  • JDK 21 isn't installed within the environment under macOS. Windows and Linux already install it. Thus, a setup script is added to CI macOS jobs to install Temurin JDK 21.

Checksums taken during apple#876 ended up out of date
due to the release of GraalVM `21.1.2` (the PR was
built against `21.1.1`).

These checksums are calculated from the GraalVM
download page directly:

https://www.graalvm.org/downloads/

On Linux:
```
sha256sum graalvm-...
```

Signed-off-by: Sam Gammon <[email protected]>
Comment on lines +22 to +29
export JAVA_ROOT="/Library/Java/JavaVirtualMachines/jdk-21.jdk"
export JAVA_HOME="$JAVA_ROOT/Contents/Home"
export PATH="$JAVA_HOME/bin:$PATH"
mv $HOME/jdk $JAVA_ROOT
/usr/libexec/java_home -V
java -version
mkdir -p $HOME/.gradle
echo "org.gradle.java.home=$JAVA_HOME" >> $HOME/.gradle/gradle.properties
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some notes:

  • JAVA_ROOT vs JAVA_HOME accounts for the ../Contents/Home path prepended to mac JDKs.
  • /jdk is not writable on modern macOS, so the JDK is unpacked at $HOME/jdk
  • I am not sure export JAVA_HOME=... will impact subsequent steps, so org.gradle.java.home=... is set instead

@bioball bioball mentioned this pull request Feb 4, 2025
@sgammon sgammon closed this Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant