Skip to content

Commit

Permalink
[Misc] Build Jtreg using JDK on aach64 runners
Browse files Browse the repository at this point in the history
Summary: When the cache fails to be retrieved, the JDK used for the
build is forcibly set to the x64 JDK, which can cause problems in the
aarch64 runners.

Testing: CI pipline

Reviewers: lei.yul, sendaoYan

Issue: dragonwell-project#858
  • Loading branch information
Accelerator1996 committed Aug 15, 2024
1 parent bc9221f commit bd986bf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/actions/get-jtreg/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,12 @@ runs:
- name: 'Build JTReg'
run: |
# Build JTReg and move files to the proper locations
bash make/build.sh --jdk "$JAVA_HOME_11_X64"
if [ -n "$JAVA_HOME_11_X64" ]; then
jdk=$JAVA_HOME_11_X64
else
jdk=$(dirname $(dirname $(readlink -f `which java`)))
fi
bash make/build.sh --jdk "$jdk"
mkdir ../installed
mv build/images/jtreg/* ../installed
working-directory: jtreg/src
Expand Down

0 comments on commit bd986bf

Please sign in to comment.