From 673ccb4598bf09663262727f499d13ac62e0ac17 Mon Sep 17 00:00:00 2001 From: Martin Kinkelin Date: Fri, 10 May 2024 01:58:41 +0200 Subject: [PATCH] GHA: Bump actions/{checkout,{up,down}load-artifact} versions To get rid of deprecations and hopefully benefit from improved performance for up/download-artifact v4. --- .github/workflows/build_release_template.yml | 16 +++++++------- .github/workflows/build_windows.yml | 22 ++++++++++---------- .github/workflows/test_release.yml | 6 +++--- 3 files changed, 22 insertions(+), 22 deletions(-) diff --git a/.github/workflows/build_release_template.yml b/.github/workflows/build_release_template.yml index bf9c6864..a7b7f4a1 100644 --- a/.github/workflows/build_release_template.yml +++ b/.github/workflows/build_release_template.yml @@ -51,21 +51,21 @@ jobs: steps: # Clone all required repos - name: Clone dmd - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: 'dlang/dmd' ref: ${{ inputs.release_branch }} path: 'dmd' - name: Clone phobos - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: 'dlang/phobos' ref: ${{ inputs.release_branch }} path: 'phobos' - name: Clone dlang.org - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: 'dlang/dlang.org' ref: ${{ inputs.release_branch }} @@ -93,7 +93,7 @@ jobs: # Save the generated documentation for the target-specific builds - name: Upload generated docs as a temporary artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: dmd-documentation path: dlang.org/web @@ -192,7 +192,7 @@ jobs: # Clone dlang/installer which provides the actual build scripts # - name: Clone installer repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: ${{ inputs.installer_repo }} ref: ${{ inputs.installer_branch }} @@ -201,7 +201,7 @@ jobs: # Load the generated documentation in the create_dmd_release folder # - name: Download docs generated by the previous job - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: dmd-documentation path: create_dmd_release/docs @@ -306,9 +306,9 @@ jobs: # job(s) have access to all generated releases # - name: Upload generated release as a temporary artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: - name: dmd-release + name: dmd-release-${{ matrix.target }} path: | ${{ github.workspace }}/create_dmd_release/build/* !${{ github.workspace }}/create_dmd_release/build/*.zip diff --git a/.github/workflows/build_windows.yml b/.github/workflows/build_windows.yml index 01eac6c0..d0531448 100644 --- a/.github/workflows/build_windows.yml +++ b/.github/workflows/build_windows.yml @@ -22,12 +22,12 @@ jobs: LLVM_VER: 9.0.0 ARCH: ${{ matrix.arch }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 1 - shell: cmd run: call windows\build_lld.bat || exit /b - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: lld-${{ matrix.arch }} path: artifacts/ @@ -42,12 +42,12 @@ jobs: MINGW_VER: 8.0.0 D_VERSION: 2.077.1 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 1 - shell: cmd run: call windows\build_mingw.bat || exit /b - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: mingw-libs path: artifacts/ @@ -63,12 +63,12 @@ jobs: ZLIB_VER: 1.2.11 PEXPORTS_VER: 0.47 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 1 - shell: cmd run: call windows\build_curl.bat || exit /b - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: curl path: artifacts/ @@ -78,7 +78,7 @@ jobs: runs-on: ubuntu-20.04 timeout-minutes: 120 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 1 - name: Clone repos @@ -94,7 +94,7 @@ jobs: set -eux mkdir -p work/docs zip -r work/docs/docs.zip work/dlang.org/web - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: docs path: work/docs @@ -108,11 +108,11 @@ jobs: LDC_VSDIR: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\ HOST_LDC_VERSION: 1.23.0 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 1 - name: Download docs artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: docs path: docs/ @@ -162,7 +162,7 @@ jobs: cd .. || exit /b mkdir artifacts || exit /b copy windows\*.exe artifacts || exit /b - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: win_release path: artifacts/ diff --git a/.github/workflows/test_release.yml b/.github/workflows/test_release.yml index da83e100..fa2f74e2 100644 --- a/.github/workflows/test_release.yml +++ b/.github/workflows/test_release.yml @@ -51,12 +51,12 @@ jobs: steps: - name: Download generated releases from the artifacts id: download-release - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: - name: dmd-release + name: dmd-release-${{ matrix.os }} - name: Clone installer repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: installer