diff --git a/.github/workflows/submit.yml b/.github/workflows/submit.yml index 4d2c1d1f15..9c0be4f9b9 100644 --- a/.github/workflows/submit.yml +++ b/.github/workflows/submit.yml @@ -53,7 +53,7 @@ jobs: if: steps.check_submit.outputs.should_run != 'false' - name: Checkout the source - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: jdk if: steps.check_submit.outputs.should_run != 'false' @@ -82,14 +82,14 @@ jobs: - name: Check if a jtreg image is present in the cache id: jtreg - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/jtreg/ key: jtreg-${{ env.JTREG_REF }}-v1 if: steps.check_submit.outputs.should_run != 'false' - name: Checkout the jtreg source - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: "openjdk/jtreg" ref: ${{ env.JTREG_REF }} @@ -107,7 +107,7 @@ jobs: if: steps.check_submit.outputs.should_run != 'false' && steps.jtreg.outputs.cache-hit != 'true' - name: Store jtreg for use by later steps - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: transient_jtreg_${{ steps.check_bundle_id.outputs.bundle_id }} path: ~/jtreg/ @@ -135,20 +135,20 @@ jobs: steps: - name: Checkout the source - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: jdk - name: Restore jtreg artifact id: jtreg_restore - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: transient_jtreg_${{ needs.prerequisites.outputs.bundle_id }} path: ~/jtreg/ continue-on-error: true - name: Restore jtreg artifact (retry) - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: transient_jtreg_${{ needs.prerequisites.outputs.bundle_id }} path: ~/jtreg/ @@ -183,7 +183,7 @@ jobs: tar -czf jdk-${{ env.JDK_VERSION }}-internal+0_linux-x64_bin${{ matrix.artifact }}.tar.gz -C jdk/build/linux-x64/images j2sdk-image - name: Persist test bundles - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: transient_jdk-linux-x64${{ matrix.artifact }}_${{ needs.prerequisites.outputs.bundle_id }} path: | @@ -217,18 +217,18 @@ jobs: steps: - name: Checkout the source - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Restore jtreg artifact id: jtreg_restore - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: transient_jtreg_${{ needs.prerequisites.outputs.bundle_id }} path: ~/jtreg/ continue-on-error: true - name: Restore jtreg artifact (retry) - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: transient_jtreg_${{ needs.prerequisites.outputs.bundle_id }} path: ~/jtreg/ @@ -236,14 +236,14 @@ jobs: - name: Restore build artifacts id: build_restore - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: transient_jdk-linux-x64${{ matrix.artifact }}_${{ needs.prerequisites.outputs.bundle_id }} path: ~/jdk-linux-x64${{ matrix.artifact }} continue-on-error: true - name: Restore build artifacts (retry) - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: transient_jdk-linux-x64${{ matrix.artifact }}_${{ needs.prerequisites.outputs.bundle_id }} path: ~/jdk-linux-x64${{ matrix.artifact }} @@ -297,8 +297,9 @@ jobs: - name: Persist test results if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: + name: linux-x64${{ matrix.artifact }}_testresults_${{ env.logsuffix }} path: ~/linux-x64${{ matrix.artifact }}_testresults_${{ env.logsuffix }}.zip continue-on-error: true @@ -356,7 +357,7 @@ jobs: steps: - name: Checkout the source - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: jdk @@ -384,7 +385,7 @@ jobs: - name: Cache sysroot id: cache-sysroot - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/sysroot-${{ matrix.debian-arch }}/ key: sysroot-${{ matrix.debian-arch }}-${{ hashFiles('jdk/.github/workflows/submit.yml') }} @@ -479,20 +480,20 @@ jobs: steps: - name: Checkout the source - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: jdk - name: Restore jtreg artifact id: jtreg_restore - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: transient_jtreg_${{ needs.prerequisites.outputs.bundle_id }} path: ~/jtreg/ continue-on-error: true - name: Restore jtreg artifact (retry) - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: transient_jtreg_${{ needs.prerequisites.outputs.bundle_id }} path: ~/jtreg/ @@ -535,7 +536,7 @@ jobs: tar -czf jdk-${{ env.JDK_VERSION }}-internal+0_linux-x86_bin${{ matrix.artifact }}.tar.gz -C jdk/build/linux-x86/images j2sdk-image - name: Persist test bundles - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: transient_jdk-linux-x86${{ matrix.artifact }}_${{ needs.prerequisites.outputs.bundle_id }} path: | @@ -570,18 +571,18 @@ jobs: steps: - name: Checkout the source - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Restore jtreg artifact id: jtreg_restore - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: transient_jtreg_${{ needs.prerequisites.outputs.bundle_id }} path: ~/jtreg/ continue-on-error: true - name: Restore jtreg artifact (retry) - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: transient_jtreg_${{ needs.prerequisites.outputs.bundle_id }} path: ~/jtreg/ @@ -589,14 +590,14 @@ jobs: - name: Restore build artifacts id: build_restore - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: transient_jdk-linux-x86${{ matrix.artifact }}_${{ needs.prerequisites.outputs.bundle_id }} path: ~/jdk-linux-x86${{ matrix.artifact }} continue-on-error: true - name: Restore build artifacts (retry) - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: transient_jdk-linux-x86${{ matrix.artifact }}_${{ needs.prerequisites.outputs.bundle_id }} path: ~/jdk-linux-x86${{ matrix.artifact }} @@ -658,8 +659,9 @@ jobs: - name: Persist test results if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: + name: linux-x86${{ matrix.artifact }}_testresults_${{ env.logsuffix }} path: ~/linux-x86${{ matrix.artifact }}_testresults_${{ env.logsuffix }}.zip continue-on-error: true @@ -693,7 +695,7 @@ jobs: steps: - name: Restore cygwin installer from cache id: cygwin-installer - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/cygwin/setup-x86_64.exe key: cygwin-installer @@ -706,7 +708,7 @@ jobs: - name: Restore cygwin packages from cache id: cygwin - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/cygwin/packages key: cygwin-packages-${{ runner.os }}-v1 @@ -716,12 +718,12 @@ jobs: Start-Process -FilePath "$HOME\cygwin\setup-x86_64.exe" -ArgumentList "--quiet-mode --packages autoconf,make,zip,unzip --root $HOME\cygwin\cygwin64 --local-package-dir $HOME\cygwin\packages --site http://mirrors.kernel.org/sourceware/cygwin --no-desktop --no-shortcuts --no-startmenu --no-admin" -Wait -NoNewWindow - name: Checkout the source - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: jdk - name: Checkout the FreeType source - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: "freetype/freetype" ref: VER-2-8-1 @@ -729,7 +731,7 @@ jobs: - name: Restore boot JDK from cache id: bootjdk - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/bootjdk/${{ env.BOOT_JDK_VERSION }} key: bootjdk-${{ runner.os }}-${{ env.BOOT_JDK_VERSION }}-${{ env.BOOT_JDK_SHA256 }}-v1 @@ -746,21 +748,21 @@ jobs: - name: Restore Visual Studio 2017 from cache id: vs2017 - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/${{ env.VS2017_FILENAME }} key: vs2017 - name: Restore jtreg artifact id: jtreg_restore - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: transient_jtreg_${{ needs.prerequisites.outputs.bundle_id }} path: ~/jtreg/ continue-on-error: true - name: Restore jtreg artifact (retry) - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: transient_jtreg_${{ needs.prerequisites.outputs.bundle_id }} path: ~/jtreg/ @@ -835,7 +837,7 @@ jobs: working-directory: jdk/build/windows-x64/images - name: Persist test bundles - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: transient_jdk-windows-x64${{ matrix.artifact }}_${{ needs.prerequisites.outputs.bundle_id }} path: | @@ -874,7 +876,7 @@ jobs: steps: - name: Restore cygwin installer from cache id: cygwin-installer - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/cygwin/setup-x86_64.exe key: cygwin-installer @@ -887,7 +889,7 @@ jobs: - name: Restore cygwin packages from cache id: cygwin - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/cygwin/packages key: cygwin-packages-${{ runner.os }}-v1 @@ -897,12 +899,12 @@ jobs: Start-Process -FilePath "$HOME\cygwin\setup-x86_64.exe" -ArgumentList "--quiet-mode --packages autoconf,make,zip,unzip --root $HOME\cygwin\cygwin64 --local-package-dir $HOME\cygwin\packages --site http://mirrors.kernel.org/sourceware/cygwin --no-desktop --no-shortcuts --no-startmenu --no-admin" -Wait -NoNewWindow - name: Checkout the source - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: jdk - name: Checkout the FreeType source - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: "freetype/freetype" ref: VER-2-8-1 @@ -910,7 +912,7 @@ jobs: - name: Restore boot JDK from cache id: bootjdk - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/bootjdk/${{ env.BOOT_JDK_VERSION }} key: bootjdk-${{ runner.os }}-${{ env.BOOT_JDK_VERSION }}-${{ env.BOOT_JDK_SHA256 }}-v1 @@ -927,7 +929,7 @@ jobs: - name: Restore Visual Studio 2010 from cache id: vs2010 - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/${{ env.VS2010_DIR }} key: vs2010 @@ -949,14 +951,14 @@ jobs: - name: Restore jtreg artifact id: jtreg_restore - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: transient_jtreg_${{ needs.prerequisites.outputs.bundle_id }} path: ~/jtreg/ continue-on-error: true - name: Restore jtreg artifact (retry) - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: transient_jtreg_${{ needs.prerequisites.outputs.bundle_id }} path: ~/jtreg/ @@ -1009,7 +1011,7 @@ jobs: working-directory: jdk/build/windows-x86/images - name: Persist test bundles - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: transient_jdk-windows-x86${{ matrix.artifact }}_${{ needs.prerequisites.outputs.bundle_id }} path: | @@ -1046,11 +1048,11 @@ jobs: steps: - name: Checkout the source - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Restore boot JDK from cache id: bootjdk - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/bootjdk/${{ env.BOOT_JDK_VERSION }} key: bootjdk-${{ runner.os }}-${{ env.BOOT_JDK_VERSION }}-${{ env.BOOT_JDK_SHA256 }}-v1 @@ -1067,7 +1069,7 @@ jobs: - name: Restore cygwin installer from cache id: cygwin-installer - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/cygwin/setup-x86_64.exe key: cygwin-installer @@ -1080,7 +1082,7 @@ jobs: - name: Restore cygwin packages from cache id: cygwin - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/cygwin/packages key: cygwin-packages-${{ runner.os }}-v1 @@ -1091,14 +1093,14 @@ jobs: - name: Restore jtreg artifact id: jtreg_restore - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: transient_jtreg_${{ needs.prerequisites.outputs.bundle_id }} path: ~/jtreg/ continue-on-error: true - name: Restore jtreg artifact (retry) - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: transient_jtreg_${{ needs.prerequisites.outputs.bundle_id }} path: ~/jtreg/ @@ -1106,14 +1108,14 @@ jobs: - name: Restore build artifacts id: build_restore - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: transient_jdk-windows-x64${{ matrix.artifact }}_${{ needs.prerequisites.outputs.bundle_id }} path: ~/jdk-windows-x64${{ matrix.artifact }} continue-on-error: true - name: Restore build artifacts (retry) - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: transient_jdk-windows-x64${{ matrix.artifact }}_${{ needs.prerequisites.outputs.bundle_id }} path: ~/jdk-windows-x64${{ matrix.artifact }} @@ -1167,8 +1169,9 @@ jobs: - name: Persist test results if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: + name: windows-x64${{ matrix.artifact }}_testresults_${{ env.logsuffix }} path: ~/windows-x64${{ matrix.artifact }}_testresults_${{ env.logsuffix }}.zip continue-on-error: true @@ -1203,11 +1206,11 @@ jobs: steps: - name: Checkout the source - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Restore boot JDK from cache id: bootjdk - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/bootjdk/${{ env.BOOT_JDK_VERSION }} key: bootjdk-${{ runner.os }}-${{ env.BOOT_JDK_VERSION }}-${{ env.BOOT_JDK_SHA256 }}-v1 @@ -1224,7 +1227,7 @@ jobs: - name: Restore cygwin installer from cache id: cygwin-installer - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/cygwin/setup-x86_64.exe key: cygwin-installer @@ -1237,7 +1240,7 @@ jobs: - name: Restore cygwin packages from cache id: cygwin - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/cygwin/packages key: cygwin-packages-${{ runner.os }}-v1 @@ -1248,14 +1251,14 @@ jobs: - name: Restore jtreg artifact id: jtreg_restore - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: transient_jtreg_${{ needs.prerequisites.outputs.bundle_id }} path: ~/jtreg/ continue-on-error: true - name: Restore jtreg artifact (retry) - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: transient_jtreg_${{ needs.prerequisites.outputs.bundle_id }} path: ~/jtreg/ @@ -1263,14 +1266,14 @@ jobs: - name: Restore build artifacts id: build_restore - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: transient_jdk-windows-x86${{ matrix.artifact }}_${{ needs.prerequisites.outputs.bundle_id }} path: ~/jdk-windows-x86${{ matrix.artifact }} continue-on-error: true - name: Restore build artifacts (retry) - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: transient_jdk-windows-x86${{ matrix.artifact }}_${{ needs.prerequisites.outputs.bundle_id }} path: ~/jdk-windows-x86${{ matrix.artifact }} @@ -1324,8 +1327,9 @@ jobs: - name: Persist test results if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: + name: windows-x86${{ matrix.artifact }}_testresults_${{ env.logsuffix }} path: ~/windows-x86${{ matrix.artifact }}_testresults_${{ env.logsuffix }}.zip continue-on-error: true @@ -1356,13 +1360,13 @@ jobs: steps: - name: Checkout the source - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: jdk - name: Restore boot JDK from cache id: bootjdk - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/bootjdk/${{ env.BOOT_JDK_VERSION }} key: bootjdk-${{ runner.os }}-${{ env.BOOT_JDK_VERSION }}-${{ env.BOOT_JDK_SHA256 }}-v1 @@ -1378,14 +1382,14 @@ jobs: - name: Restore jtreg artifact id: jtreg_restore - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: transient_jtreg_${{ needs.prerequisites.outputs.bundle_id }} path: ~/jtreg/ continue-on-error: true - name: Restore jtreg artifact (retry) - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: transient_jtreg_${{ needs.prerequisites.outputs.bundle_id }} path: ~/jtreg/ @@ -1421,7 +1425,7 @@ jobs: tar -czf jdk-${{ env.JDK_VERSION }}-internal+0_osx-x64_bin${{ matrix.artifact }}.tar.gz -C jdk/build/macos-x64/images j2sdk-image - name: Persist test bundles - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: transient_jdk-macos-x64${{ matrix.artifact }}_${{ needs.prerequisites.outputs.bundle_id }} path: | @@ -1458,11 +1462,11 @@ jobs: steps: - name: Checkout the source - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Restore boot JDK from cache id: bootjdk - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/bootjdk/${{ env.BOOT_JDK_VERSION }} key: bootjdk-${{ runner.os }}-${{ env.BOOT_JDK_VERSION }}-${{ env.BOOT_JDK_SHA256 }}-v1 @@ -1478,14 +1482,14 @@ jobs: - name: Restore jtreg artifact id: jtreg_restore - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: transient_jtreg_${{ needs.prerequisites.outputs.bundle_id }} path: ~/jtreg/ continue-on-error: true - name: Restore jtreg artifact (retry) - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: transient_jtreg_${{ needs.prerequisites.outputs.bundle_id }} path: ~/jtreg/ @@ -1493,14 +1497,14 @@ jobs: - name: Restore build artifacts id: build_restore - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: transient_jdk-macos-x64${{ matrix.artifact }}_${{ needs.prerequisites.outputs.bundle_id }} path: ~/jdk-macos-x64${{ matrix.artifact }} continue-on-error: true - name: Restore build artifacts (retry) - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: transient_jdk-macos-x64${{ matrix.artifact }}_${{ needs.prerequisites.outputs.bundle_id }} path: ~/jdk-macos-x64${{ matrix.artifact }} @@ -1554,8 +1558,9 @@ jobs: - name: Persist test results if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: + name: macos-x64${{ matrix.artifact }}_testresults_${{ env.logsuffix }} path: ~/macos-x64${{ matrix.artifact }}_testresults_${{ env.logsuffix }}.zip continue-on-error: true @@ -1576,7 +1581,7 @@ jobs: steps: - name: Determine current artifacts endpoint id: actions_runtime - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: script: "return { url: process.env['ACTIONS_RUNTIME_URL'], token: process.env['ACTIONS_RUNTIME_TOKEN'] }" @@ -1599,7 +1604,7 @@ jobs: done - name: Fetch remaining artifacts (test results) - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: path: test-results @@ -1616,7 +1621,7 @@ jobs: done - name: Upload a combined test results artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: test-results_${{ needs.prerequisites.outputs.bundle_id }} path: test-results