From 5756beaee7b8f85a8f42ee37aacfad89b7be50b4 Mon Sep 17 00:00:00 2001 From: "lvfei.lv" Date: Thu, 15 Aug 2024 17:00:16 +0800 Subject: [PATCH] [Misc] Add the step of downloading Jtreg in Actions Summary: CICD Testing: CI pipline Reviewers: lei.yul, sendaoYan Issue: https://github.com/dragonwell-project/dragonwell11/issues/858 --- .github/actions/get-jtreg/action.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/actions/get-jtreg/action.yml b/.github/actions/get-jtreg/action.yml index ab0927919db..ef1a652a717 100644 --- a/.github/actions/get-jtreg/action.yml +++ b/.github/actions/get-jtreg/action.yml @@ -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=`which java`/.. + fi + bash make/build.sh --jdk "$jdk" mkdir ../installed mv build/images/jtreg/* ../installed working-directory: jtreg/src