JAVA_HOME
env variable issue.
#9266
Unanswered
sureshg
asked this question in
General questions
Replies: 2 comments 1 reply
-
Hey @sureshg! |
Beta Was this translation helpful? Give feedback.
1 reply
-
Omg, this was driving me mad :( Thanks for hits. Fixed with
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Java versions 8, 11, 17 & 21 are installed by default on Github action runners, which is awesome and also it exposes
JAVA_HOME
env variable for each version. But i don't understand the reasoning behind appending the CPU arch along with the env name (https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2204-Readme.md#java). This will cause some headache when writing actions as we have to form the proper env variable based on CPU Arch (M1 mac, ARM64). Moreover on ARM64, it uses lowercase, so can't directly useRUNNER_ARCH
env varaible.So is it possible to add new
JAVA_HOME
env variables without the CPU arch appended to it. This will make writing actions using java a bit more easier.Beta Was this translation helpful? Give feedback.
All reactions