-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Environment variables defined in toolchains.xml
are incorrect on ARM runners
#89
Comments
Thanks for your report. The reason for the hard-coded To support ARM equally, we need to choose between:
My preference would be for the 3rd option. Are you interested in submitting a PR for this? |
Yes |
toolchains.xml
are incorrect on ARM runners
Different runners have different JDKs installed, so using a hard-coded list for `toolchains.xml` doesn't work. With this change, the file is generated based on the available `JAVA_HOME_*` environment variables. Fixes #89 Thanks @hfhbd for the contribution! Co-authored-by: hfhbd <22521688+hfhbd@users.noreply.github.com>
We're still seeing these warnings on a self-hosted ubuntu runner (that looks like it's ubuntu-2204 image running on a beefier machine) gradle/actions/setup-gradle@v3 (SHA:d9c87d481d55275bb5441eef3fe0e46805f9ef70 / 3.5.0)
We do have setup-java:
|
@TWiStErRob Can you please check a few things:
Thanks! |
The toolchain.xml contains x86 env variables which aren't guaranteed to exist on arm, like macOS-14 (M1) or Ubuntu Arm runners (currently in private Beta), or on any custom hosted runner:
When using Gradle, this results into these warnings on macOS-14 (M1)/Ubuntu Arm:
After using
setup-java
with21
, on Ubuntu Arm there is only one env:JAVA_HOME_21_ARM64=/home/runner/work/_tool/Java_Adopt_jdk/21.0.2-13.0.LTS/arm64
The text was updated successfully, but these errors were encountered: