From a742a3a13831497de62154cddfef3d7db44f1467 Mon Sep 17 00:00:00 2001 From: Cadu Date: Thu, 26 Mar 2026 15:10:51 -0300 Subject: [PATCH] chore: upgrade GitHub Actions to Node.js 24 compatible versions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - actions/checkout v4 → v6 - actions/cache v4 → v5 - actions/upload-artifact v4 → v6 - actions/download-artifact v4 → v7 - actions/github-script v7 → v8 Node.js 20 actions are deprecated and will be forced to Node.js 24 starting June 2nd, 2026, then removed entirely September 16th, 2026. --- .github/workflows/ci-online-fork.yml | 6 +++--- .github/workflows/ci.yml | 16 ++++++++-------- .github/workflows/release.yml | 12 ++++++------ 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci-online-fork.yml b/.github/workflows/ci-online-fork.yml index b0ef604..a121b6c 100644 --- a/.github/workflows/ci-online-fork.yml +++ b/.github/workflows/ci-online-fork.yml @@ -25,7 +25,7 @@ jobs: github.event.label.name == 'safe-to-test' && github.event.pull_request.head.repo.full_name != github.repository steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: # Check out the fork's PR code, not the base branch ref: ${{ github.event.pull_request.head.sha }} @@ -34,7 +34,7 @@ jobs: uses: dtolnay/rust-toolchain@stable - name: Cache cargo registry & build - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: | ~/.cargo/registry @@ -54,7 +54,7 @@ jobs: - name: Remove safe-to-test label if: always() - uses: actions/github-script@v7 + uses: actions/github-script@v8 with: script: | try { diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e9fbac2..7d38fa2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: name: Lint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Install Rust toolchain uses: dtolnay/rust-toolchain@stable @@ -21,7 +21,7 @@ jobs: components: rustfmt, clippy - name: Cache cargo registry & build - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: | ~/.cargo/registry @@ -50,13 +50,13 @@ jobs: name: Tests (Offline) runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Install Rust toolchain uses: dtolnay/rust-toolchain@stable - name: Cache cargo registry & build - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: | ~/.cargo/registry @@ -83,13 +83,13 @@ jobs: cancel-in-progress: false runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Install Rust toolchain uses: dtolnay/rust-toolchain@stable - name: Cache cargo registry & build - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: | ~/.cargo/registry @@ -130,7 +130,7 @@ jobs: runner: macos-latest target: aarch64-apple-darwin steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Install Rust toolchain uses: dtolnay/rust-toolchain@stable @@ -142,7 +142,7 @@ jobs: run: sudo apt-get update && sudo apt-get install -y musl-tools - name: Cache cargo registry & build - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: | ~/.cargo/registry diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a8e1c3c..fd35878 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,7 +15,7 @@ jobs: name: Publish to crates.io runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: ref: ${{ github.event.release.tag_name }} @@ -98,7 +98,7 @@ jobs: target: aarch64-apple-darwin asset: lineark_macos_aarch64 steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: ref: ${{ github.event.release.tag_name }} @@ -112,7 +112,7 @@ jobs: run: sudo apt-get update && sudo apt-get install -y musl-tools - name: Cache cargo registry & build - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: | ~/.cargo/registry @@ -144,7 +144,7 @@ jobs: run: cp target/${{ matrix.target }}/release/lineark ${{ matrix.asset }} - name: Upload artifact - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: name: ${{ matrix.asset }} path: ${{ matrix.asset }} @@ -154,10 +154,10 @@ jobs: needs: [publish, build] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Download all artifacts - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v7 with: path: artifacts merge-multiple: true