From efb174e8d6b629a4ea527e68705a36e48c876bf3 Mon Sep 17 00:00:00 2001 From: Noritada Kobayashi Date: Sat, 26 Oct 2024 23:19:33 +0900 Subject: [PATCH] CI/CD: migrate actions that are deprecated The warnings are like this: (for cd.yml) The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/upload-artifact@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/ Deprecation notice: v1, v2, and v3 of the artifact actions The following artifacts were uploaded using a version of actions/upload-artifact that is scheduled for deprecation: "rrr-aarch64-apple-darwin", "rrr-aarch64-unknown-linux-musl", "rrr-x86_64-apple-darwin", "rrr-x86_64-pc-windows-msvc", "rrr-x86_64-unknown-linux-musl". Please update your workflow to use v4 of the artifact actions. Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/ (for ci.yml) The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/ (for pages.yml) The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/configure-pages@v2, actions/upload-artifact@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/ The following actions use a deprecated Node.js version and will be forced to run on node20: actions/deploy-pages@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/ Deprecation notice: v1, v2, and v3 of the artifact actions The following artifacts were uploaded using a version of actions/upload-artifact that is scheduled for deprecation: "github-pages". Please update your workflow to use v4 of the artifact actions. Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/ --- .github/workflows/cd.yml | 6 +++--- .github/workflows/ci.yml | 2 +- .github/workflows/pages.yml | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 5566349..7c9bee8 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -26,7 +26,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: recursive - name: Install Rust @@ -56,13 +56,13 @@ jobs: powershell Compress-Archive -Path target/${{ matrix.target }}/release/rrr.exe -DestinationPath rrr-${{ matrix.target }}.zip - name: Upload artifacts (in non-Windows environments) if: matrix.target != 'x86_64-pc-windows-msvc' - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: rrr-${{ matrix.target }} path: rrr-${{ matrix.target }}.tar.xz - name: Upload artifacts (in Windows environments) if: matrix.target == 'x86_64-pc-windows-msvc' - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: rrr-${{ matrix.target }} path: rrr-${{ matrix.target }}.zip diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b7ce65e..13b808e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: recursive - name: Install Rust diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 0d88c38..b23f531 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: recursive - name: Install Rust @@ -51,7 +51,7 @@ jobs: done - name: Setup Pages - uses: actions/configure-pages@v2 + uses: actions/configure-pages@v5 - name: Upload artifact uses: actions/upload-pages-artifact@v1 with: @@ -66,4 +66,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v1 + uses: actions/deploy-pages@v4