From cbe898703631b404dfc430a60050fd8d0956a62f Mon Sep 17 00:00:00 2001 From: Steveice10 <1269164+Steveice10@users.noreply.github.com> Date: Sun, 18 Feb 2024 08:23:15 -0800 Subject: [PATCH] ci: Update action versions. (#7449) --- .github/workflows/build.yml | 42 ++++++++++++++++----------------- .github/workflows/format.yml | 2 +- .github/workflows/publish.yml | 16 ++++++------- .github/workflows/transifex.yml | 2 +- 4 files changed, 31 insertions(+), 31 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ad0665c5b..b848e93d5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,13 +12,13 @@ jobs: if: ${{ !github.head_ref }} runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: recursive - name: Pack run: ./.ci/source.sh - name: Upload - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: source path: artifacts/ @@ -37,11 +37,11 @@ jobs: OS: linux TARGET: ${{ matrix.target }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: recursive - name: Set up cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ env.CCACHE_DIR }} key: ${{ runner.os }}-${{ matrix.target }}-${{ github.sha }} @@ -53,7 +53,7 @@ jobs: run: ./.ci/pack.sh if: ${{ matrix.target == 'appimage' }} - name: Upload - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 if: ${{ matrix.target == 'appimage' }} with: name: ${{ env.OS }}-${{ env.TARGET }} @@ -70,11 +70,11 @@ jobs: OS: macos TARGET: ${{ matrix.target }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: recursive - name: Set up cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ env.CCACHE_DIR }} key: ${{ runner.os }}-${{ matrix.target }}-${{ github.sha }} @@ -87,7 +87,7 @@ jobs: - name: Prepare outputs for caching run: mv build/bundle $OS-$TARGET - name: Cache outputs for universal build - uses: actions/cache/save@v3 + uses: actions/cache/save@v4 with: path: ${{ env.OS }}-${{ env.TARGET }} key: ${{ runner.os }}-${{ matrix.target }}-${{ github.sha }}-${{ github.run_id }}-${{ github.run_attempt }} @@ -98,15 +98,15 @@ jobs: OS: macos TARGET: universal steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Download x86_64 build from cache - uses: actions/cache/restore@v3 + uses: actions/cache/restore@v4 with: path: ${{ env.OS }}-x86_64 key: ${{ runner.os }}-x86_64-${{ github.sha }}-${{ github.run_id }}-${{ github.run_attempt }} fail-on-cache-miss: true - name: Download ARM64 build from cache - uses: actions/cache/restore@v3 + uses: actions/cache/restore@v4 with: path: ${{ env.OS }}-arm64 key: ${{ runner.os }}-arm64-${{ github.sha }}-${{ github.run_id }}-${{ github.run_attempt }} @@ -118,7 +118,7 @@ jobs: - name: Pack run: ./.ci/pack.sh - name: Upload - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ env.OS }}-${{ env.TARGET }} path: artifacts/ @@ -137,11 +137,11 @@ jobs: OS: windows TARGET: ${{ matrix.target }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: recursive - name: Set up cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ env.CCACHE_DIR }} key: ${{ runner.os }}-${{ matrix.target }}-${{ github.sha }} @@ -179,7 +179,7 @@ jobs: - name: Pack run: ./.ci/pack.sh - name: Upload - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ env.OS }}-${{ env.TARGET }} path: artifacts/ @@ -192,11 +192,11 @@ jobs: OS: android TARGET: universal steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: recursive - name: Set up cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | ~/.gradle/caches @@ -228,7 +228,7 @@ jobs: env: UNPACKED: 1 - name: Upload - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ env.OS }}-${{ env.TARGET }} path: src/android/app/artifacts/ @@ -242,11 +242,11 @@ jobs: OS: ios TARGET: arm64 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: recursive - name: Set up cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ env.CCACHE_DIR }} key: ${{ runner.os }}-ios-${{ github.sha }} @@ -261,7 +261,7 @@ jobs: needs: [windows, linux, macos-universal, android, source] if: ${{ startsWith(github.ref, 'refs/tags/') }} steps: - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 - name: Create release uses: actions/create-release@v1 env: diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 574a24e62..0d9a30caf 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -13,7 +13,7 @@ jobs: image: citraemu/build-environments:linux-fresh options: -u 1001 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Build diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4c46597f4..8c63dc6bf 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -20,11 +20,11 @@ jobs: if: ${{ github.event.inputs.nightly != 'false' && github.repository == 'citra-emu/citra' }} steps: # this checkout is required to make sure the GitHub Actions scripts are available - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 name: Pre-checkout with: submodules: false - - uses: actions/github-script@v6 + - uses: actions/github-script@v7 id: check-changes name: 'Check for new changes' env: @@ -38,7 +38,7 @@ jobs: return checkBaseChanges(github, context); - run: npm install execa@5 if: ${{ steps.check-changes.outputs.result == 'true' }} - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 name: Checkout if: ${{ steps.check-changes.outputs.result == 'true' }} with: @@ -46,7 +46,7 @@ jobs: fetch-depth: 0 submodules: true token: ${{ secrets.ALT_GITHUB_TOKEN }} - - uses: actions/github-script@v6 + - uses: actions/github-script@v7 name: 'Update and tag new commits' if: ${{ steps.check-changes.outputs.result == 'true' }} env: @@ -62,11 +62,11 @@ jobs: if: ${{ github.event.inputs.canary != 'false' && github.repository == 'citra-emu/citra' }} steps: # this checkout is required to make sure the GitHub Actions scripts are available - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 name: Pre-checkout with: submodules: false - - uses: actions/github-script@v6 + - uses: actions/github-script@v7 id: check-changes name: 'Check for new changes' env: @@ -79,7 +79,7 @@ jobs: return checkCanaryChanges(github, context); - run: npm install execa@5 if: ${{ steps.check-changes.outputs.result == 'true' }} - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 name: Checkout if: ${{ steps.check-changes.outputs.result == 'true' }} with: @@ -87,7 +87,7 @@ jobs: fetch-depth: 0 submodules: true token: ${{ secrets.ALT_GITHUB_TOKEN }} - - uses: actions/github-script@v6 + - uses: actions/github-script@v7 name: 'Check and merge canary changes' if: ${{ steps.check-changes.outputs.result == 'true' }} env: diff --git a/.github/workflows/transifex.yml b/.github/workflows/transifex.yml index 64d6e5866..b7a695f2b 100644 --- a/.github/workflows/transifex.yml +++ b/.github/workflows/transifex.yml @@ -10,7 +10,7 @@ jobs: container: citraemu/build-environments:linux-fresh if: ${{ github.repository == 'citra-emu/citra' }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: recursive fetch-depth: 0