From 8babb638adcfe6f53986a41b771b48de253698aa Mon Sep 17 00:00:00 2001 From: Jiri Vanek Date: Thu, 7 Mar 2024 16:39:08 +0100 Subject: [PATCH] Removed hardcoded path in favour of variable --- .github/workflows/test.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index becc14b..e3b7461 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -123,7 +123,7 @@ jobs: echo "it seems default shell do not honour -o igncr nor --norc" dos2unix -v run.sh find test -type f -name "*.sh" -exec dos2unix -v {} \; - bash.exe --login --norc -o igncr -c "cd /cygdrive/d/a/jtreg-buffer/jtreg-buffer && ./run.sh \"${JAVA_HOME}\"" + bash.exe --login --norc -o igncr -c "cd \"$GITHUB_WORKSPACE\" && ./run.sh \"${JAVA_HOME}\"" - name: Upload results if: ${{ always() }} uses: actions/upload-artifact@v3 @@ -152,6 +152,11 @@ jobs: jdkver: "21" steps: - uses: actions/checkout@v3 + - name: Set up JDK + uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: ${{ matrix.jdkver}} - uses: msys2/setup-msys2@v2 with: update: true