Skip to content

Commit

Permalink
feat: support running action with ARM64 machines
Browse files Browse the repository at this point in the history
Try JAVA_HOME_17_ARM64 first, and fallback to JAVA_HOME_17_X86

Fixes oracle-actions#63
  • Loading branch information
vlsi committed Nov 27, 2023
1 parent afea155 commit 03b6386
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ runs:
id: download
shell: bash
run: |
JAVA=$JAVA_HOME_17_X64/bin/java
JAVA=$JAVA_HOME_17_ARM64/bin/java
if [ ! -f "$JAVA" ]; then
JAVA=$JAVA_HOME_17_X86/bin/java
fi
DOWNLOAD=$GITHUB_ACTION_PATH/src/Download.java
if [ ! -z "${{ inputs.uri }}" ]; then
$JAVA \
Expand Down

0 comments on commit 03b6386

Please sign in to comment.