File tree Expand file tree Collapse file tree 2 files changed +15
-11
lines changed
actions/setup-oracle-graalvm-ea-build Expand file tree Collapse file tree 2 files changed +15
-11
lines changed Original file line number Diff line number Diff line change @@ -13,18 +13,22 @@ runs:
1313 - name : Set up GRAALVM_HOME with EA build
1414 shell : bash
1515 run : |
16- FILE_NAME="graalvm-jdk .tar.gz"
16+ FILE_NAME="${{ github.workspace }}/ graalvm.tar.gz"
1717 DOWNLOAD_URL=$(jq -r '(.download_base_url + (.files[] | select(.arch == "x64" and .platform == "linux") | .filename))' versions/latest-ea.json)
1818 echo "Downloading '${DOWNLOAD_URL}'..."
19- pushd $HOME > /dev/null
2019 curl --fail --silent --location --retry 3 --max-time 10 --output "${FILE_NAME}" --request GET "${DOWNLOAD_URL}"
21- tar xzf "${FILE_NAME}"
22- GRAALVM_HOME=$(find $(pwd) -type d -name "graalvm-jdk-*")
23- echo "GRAALVM_HOME=${GRAALVM_HOME}" >> ${GITHUB_ENV}
24- popd > /dev/null
20+ tar xzf "${FILE_NAME}" -C ${{ github.workspace }}
21+ GRAALVM_HOME=$(find "${{ github.workspace }}" -type d -name "graalvm-*")
22+ if [ -d "${GRAALVM_HOME}" ]; then
23+ echo "GRAALVM_HOME=${GRAALVM_HOME}"
24+ echo "GRAALVM_HOME=${GRAALVM_HOME}" >> ${GITHUB_ENV}
25+ else
26+ echo "Could not determine GRAALVM_HOME (set to '${GRAALVM_HOME}')"
27+ exit 1
28+ fi
2529 - name : Set up JAVA_HOME
2630 if : ${{ inputs.java-version }} != ''
27- uses : actions/setup-java@v4
31+ uses : actions/setup-java@v5
2832 with :
2933 distribution : ' oracle'
3034 java-version : ' ${{ inputs.java-version }}'
Original file line number Diff line number Diff line change @@ -90,15 +90,15 @@ jobs:
9090 steps :
9191 - name : Checkout oracle-graalvm-ea-builds for setup-oracle-graalvm-ea-build
9292 uses : actions/checkout@v4
93+ - name : Set up GraalVM JDK EA build
94+ uses : ./.github/actions/setup-oracle-graalvm-ea-build
95+ with :
96+ java-version : ${{ env.MINIMUM_METADATA_JAVA_VERSION }}
9397 - name : " Checkout oracle/graalvm-reachability-metadata"
9498 uses : actions/checkout@v4
9599 with :
96100 repository : oracle/graalvm-reachability-metadata
97101 path : ${{ env.REACHABILITY_METADATA_PATH }}
98- - name : Set up GraalVM JDK EA build
99- uses : ./.github/actions/setup-oracle-graalvm-ea-build
100- with :
101- java-version : ${{ env.MINIMUM_METADATA_JAVA_VERSION }}
102102 - name : " Pull allowed docker images"
103103 run : |
104104 cd ${{ env.REACHABILITY_METADATA_PATH }}
You can’t perform that action at this time.
0 commit comments