From 81ed5fe41e28d403ce668520ac1381ba0dd3e59e Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Wed, 13 Mar 2024 00:15:43 +0100 Subject: [PATCH] Update Actions to Node 20 There are some warnings in CI about this. --- .../workflows/create-release-artifacts.yml | 20 +++++------ .github/workflows/create-release-docs.yml | 4 +-- .github/workflows/testing.yml | 34 +++++++++---------- .github/workflows/update-master-docs.yml | 4 +-- 4 files changed, 31 insertions(+), 31 deletions(-) diff --git a/.github/workflows/create-release-artifacts.yml b/.github/workflows/create-release-artifacts.yml index 602e31b9..bc11a1b2 100644 --- a/.github/workflows/create-release-artifacts.yml +++ b/.github/workflows/create-release-artifacts.yml @@ -24,10 +24,10 @@ jobs: run: | # Turn "vX.Y.Z" into "X.Y.Z" VERSION="${{ github.ref_name }}" echo "version=${VERSION#v}" >> $GITHUB_ENV - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install deps run: .github/scripts/get_win_deps.ps1 - - uses: actions/cache@v3 + - uses: actions/cache@v4 id: cache with: path: | @@ -61,7 +61,7 @@ jobs: run: | Compress-Archive -LiteralPath @("install_dir/bin/rgbasm.exe", "install_dir/bin/rgblink.exe", "install_dir/bin/rgbfix.exe", "install_dir/bin/rgbgfx.exe", "install_dir/bin/zlib1.dll", "install_dir/bin/libpng16.dll") "rgbds-${{ env.version }}-win${{ matrix.bits }}.zip" - name: Upload Windows binaries - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: win${{ matrix.bits }} path: rgbds-${{ env.version }}-win${{ matrix.bits }}.zip @@ -74,7 +74,7 @@ jobs: run: | # Turn "refs/tags/vX.Y.Z" into "X.Y.Z" VERSION="${{ github.ref_name }}" echo "version=${VERSION#v}" >> $GITHUB_ENV - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install deps shell: bash run: | @@ -88,7 +88,7 @@ jobs: run: | zip --junk-paths rgbds-${{ env.version }}-macos-x86_64.zip rgb{asm,link,fix,gfx} man/* .github/scripts/install.sh - name: Upload macOS binaries - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: macos path: rgbds-${{ env.version }}-macos-x86_64.zip @@ -101,7 +101,7 @@ jobs: run: | # Turn "refs/tags/vX.Y.Z" into "X.Y.Z" VERSION="${{ github.ref_name }}" echo "version=${VERSION#v}" >> $GITHUB_ENV - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install deps shell: bash run: | @@ -113,7 +113,7 @@ jobs: run: | tar caf rgbds-${{ env.version }}-linux-x86_64.tar.xz --transform='s#.*/##' rgb{asm,link,fix,gfx} man/* .github/scripts/install.sh - name: Upload Linux binaries - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: linux path: rgbds-${{ env.version }}-linux-x86_64.tar.xz @@ -127,14 +127,14 @@ jobs: run: | # Turn "refs/tags/vX.Y.Z" into "X.Y.Z" VERSION="${{ github.ref_name }}" echo "version=${VERSION#v}" >> $GITHUB_ENV - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Package sources run: | make dist Q= ls - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 - name: Release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: body: | Please ensure that the four packages below work properly. diff --git a/.github/workflows/create-release-docs.yml b/.github/workflows/create-release-docs.yml index 5b9f5bab..f69ae7ac 100644 --- a/.github/workflows/create-release-docs.yml +++ b/.github/workflows/create-release-docs.yml @@ -10,11 +10,11 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Checkout rgbds@release - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: rgbds - name: Checkout rgbds-www@master - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: ${{ github.repository_owner }}/rgbds-www path: rgbds-www diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index fd70f06c..b3d1ed8f 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -19,7 +19,7 @@ jobs: fail-fast: false runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install deps shell: bash run: | @@ -47,7 +47,7 @@ jobs: mkdir bins cp rgb{asm,link,fix,gfx} bins - name: Upload binaries - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: rgbds-canary-${{ matrix.os }}-${{ matrix.cxx }}-${{ matrix.buildsys }} path: bins @@ -61,7 +61,7 @@ jobs: tee -a <<<"hash=${hash%-}" $GITHUB_OUTPUT - name: Check test dependency repositories cache id: test-deps-cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ fromJSON(steps.test-deps-cache-params.outputs.paths) }} key: ${{ matrix.os }}-${{ steps.test-deps-cache-params.outputs.hash }} @@ -87,7 +87,7 @@ jobs: fail-fast: false runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install deps shell: bash run: | @@ -104,7 +104,7 @@ jobs: mkdir bins cp rgb{asm,link,fix,gfx} bins - name: Upload binaries - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: rgbds-canary-${{ matrix.os }}-${{ matrix.buildsys }} path: bins @@ -118,7 +118,7 @@ jobs: tee -a <<<"hash=${hash%-}" $GITHUB_OUTPUT - name: Check test dependency repositories cache id: test-deps-cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ fromJSON(steps.test-deps-cache-params.outputs.paths) }} key: ${{ matrix.os }}-${{ steps.test-deps-cache-params.outputs.hash }} @@ -151,10 +151,10 @@ jobs: fail-fast: false runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install deps run: .github/scripts/get_win_deps.ps1 - - uses: actions/cache@v3 + - uses: actions/cache@v4 id: cache with: path: | @@ -191,7 +191,7 @@ jobs: mkdir bins cp install_dir/bin/{rgbasm.exe,rgblink.exe,rgbfix.exe,rgbgfx.exe,zlib1.dll,libpng16.dll} bins - name: Upload Windows binaries - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: rgbds-canary-win${{ matrix.bits }} path: bins @@ -205,7 +205,7 @@ jobs: tee -a <<<"hash=${hash%-}" $GITHUB_OUTPUT - name: Check test dependency repositories cache id: test-deps-cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ fromJSON(steps.test-deps-cache-params.outputs.paths) }} key: ${{ matrix.os }}-${{ matrix.bits }}-${{ steps.test-deps-cache-params.outputs.hash }} @@ -242,7 +242,7 @@ jobs: env: DIST_DIR: win${{ matrix.bits }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install deps shell: bash run: | @@ -265,12 +265,12 @@ jobs: cp -v /usr/lib/gcc/${{ matrix.triplet }}/10-win32/lib{ssp-0,stdc++-6}.dll bins [ "${{ matrix.bits }}" -ne 32 ] || cp -v /usr/lib/gcc/${{ matrix.triplet }}/10-win32/libgcc_s_dw2-1.dll bins - name: Upload Windows binaries - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: rgbds-canary-mingw-win${{ matrix.bits }} path: bins - name: Upload Windows test binaries - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: testing-programs-mingw-win${{ matrix.bits }} path: | @@ -286,14 +286,14 @@ jobs: fail-fast: false runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Retrieve binaries - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: rgbds-canary-mingw-win${{ matrix.bits }} path: bins - name: Retrieve test binaries - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: testing-programs-mingw-win${{ matrix.bits }} path: test/gfx @@ -312,7 +312,7 @@ jobs: tee -a <<<"hash=${hash%-}" $GITHUB_OUTPUT - name: Check test dependency repositories cache id: test-deps-cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ fromJSON(steps.test-deps-cache-params.outputs.paths) }} key: mingw-${{ matrix.bits }}-${{ steps.test-deps-cache-params.outputs.hash }} diff --git a/.github/workflows/update-master-docs.yml b/.github/workflows/update-master-docs.yml index e843af61..7a24c072 100644 --- a/.github/workflows/update-master-docs.yml +++ b/.github/workflows/update-master-docs.yml @@ -20,13 +20,13 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Checkout rgbds@master - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: gbdev/rgbds ref: master path: rgbds - name: Checkout rgbds-www@master - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: gbdev/rgbds-www ref: master