From 80861b5f1293ed02a5d74c324f8b868b742e0ed5 Mon Sep 17 00:00:00 2001 From: Sebastian Spaeth Date: Sun, 12 Apr 2026 21:57:40 +0200 Subject: [PATCH] ci: actions/cache@v3|4 -> actions/cache@v5 Update to use actions/cache@v5 in our CI --- .forgejo/actions/rust-toolchain/action.yml | 2 +- .forgejo/actions/setup-llvm-with-apt/action.yml | 2 +- .forgejo/actions/setup-rust/action.yml | 4 ++-- .forgejo/actions/timelord/action.yml | 8 ++++---- .forgejo/workflows/build-debian.yml | 2 +- .forgejo/workflows/build-fedora.yml | 6 +++--- .forgejo/workflows/documentation.yml | 2 +- .forgejo/workflows/renovate.yml | 12 ++++++------ 8 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.forgejo/actions/rust-toolchain/action.yml b/.forgejo/actions/rust-toolchain/action.yml index af81664c6..b16869d91 100644 --- a/.forgejo/actions/rust-toolchain/action.yml +++ b/.forgejo/actions/rust-toolchain/action.yml @@ -33,7 +33,7 @@ runs: echo "version=$(rustup --version)" >> $GITHUB_OUTPUT - name: Cache rustup toolchains if: steps.rustup-version.outputs.version == '' - uses: actions/cache@6f8efc29b200d32929f49075959781ed54ec270c # v3 + uses: actions/cache@v5 with: path: | ~/.rustup diff --git a/.forgejo/actions/setup-llvm-with-apt/action.yml b/.forgejo/actions/setup-llvm-with-apt/action.yml index c6adfe62d..5b649fc20 100644 --- a/.forgejo/actions/setup-llvm-with-apt/action.yml +++ b/.forgejo/actions/setup-llvm-with-apt/action.yml @@ -57,7 +57,7 @@ runs: - name: Check for LLVM cache id: cache - uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 + uses: actions/cache@v5 with: path: | /usr/bin/clang-* diff --git a/.forgejo/actions/setup-rust/action.yml b/.forgejo/actions/setup-rust/action.yml index d59df2639..252e74d9b 100644 --- a/.forgejo/actions/setup-rust/action.yml +++ b/.forgejo/actions/setup-rust/action.yml @@ -65,7 +65,7 @@ runs: - name: Cache toolchain binaries id: toolchain-cache - uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 + uses: actions/cache@v5 with: path: | .cargo/bin @@ -76,7 +76,7 @@ runs: - name: Cache Cargo registry and git id: registry-cache - uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 + uses: actions/cache@v5 with: path: | .cargo/registry/index diff --git a/.forgejo/actions/timelord/action.yml b/.forgejo/actions/timelord/action.yml index 035f5a111..4c6eb4c50 100644 --- a/.forgejo/actions/timelord/action.yml +++ b/.forgejo/actions/timelord/action.yml @@ -31,7 +31,7 @@ runs: - name: Restore binary cache id: binary-cache - uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 + uses: actions/cache/restore@v5 with: path: | /usr/share/rust/.cargo/bin @@ -77,7 +77,7 @@ runs: - name: Save binary cache if: steps.check-binaries.outputs.need-install == 'true' - uses: actions/cache/save@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 + uses: actions/cache/save@v5 with: path: | /usr/share/rust/.cargo/bin @@ -87,7 +87,7 @@ runs: - name: Restore timelord cache with fallbacks id: timelord-restore - uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 + uses: actions/cache/restore@v5 with: path: ${{ env.TIMELORD_CACHE_PATH }} key: ${{ env.TIMELORD_KEY }} @@ -114,7 +114,7 @@ runs: timelord sync --source-dir ${{ env.TIMELORD_PATH }} --cache-dir ${{ env.TIMELORD_CACHE_PATH }} - name: Save updated timelord cache immediately - uses: actions/cache/save@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 + uses: actions/cache/save@v5 with: path: ${{ env.TIMELORD_CACHE_PATH }} key: ${{ env.TIMELORD_KEY }} diff --git a/.forgejo/workflows/build-debian.yml b/.forgejo/workflows/build-debian.yml index b4ef6225f..cf2f760df 100644 --- a/.forgejo/workflows/build-debian.yml +++ b/.forgejo/workflows/build-debian.yml @@ -60,7 +60,7 @@ jobs: ref: ${{ github.ref_name }} - name: Cache Cargo registry - uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 + uses: actions/cache@v5 with: path: | ~/.cargo/registry diff --git a/.forgejo/workflows/build-fedora.yml b/.forgejo/workflows/build-fedora.yml index bd1346e29..3b09a1ffd 100644 --- a/.forgejo/workflows/build-fedora.yml +++ b/.forgejo/workflows/build-fedora.yml @@ -37,7 +37,7 @@ jobs: - name: Cache DNF packages - uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 + uses: actions/cache@v5 with: path: | /var/cache/dnf @@ -47,7 +47,7 @@ jobs: dnf-fedora${{ steps.fedora.outputs.version }}- - name: Cache Cargo registry - uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 + uses: actions/cache@v5 with: path: | ~/.cargo/registry @@ -57,7 +57,7 @@ jobs: cargo-fedora${{ steps.fedora.outputs.version }}- - name: Cache Rust build dependencies - uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 + uses: actions/cache@v5 with: path: | ~/rpmbuild/BUILD/*/target/release/deps diff --git a/.forgejo/workflows/documentation.yml b/.forgejo/workflows/documentation.yml index 48a5321a1..c3fded067 100644 --- a/.forgejo/workflows/documentation.yml +++ b/.forgejo/workflows/documentation.yml @@ -37,7 +37,7 @@ jobs: node-version: 22 - name: Cache npm dependencies - uses: actions/cache@6f8efc29b200d32929f49075959781ed54ec270c # v3 + uses: actions/cache@v5 with: path: ~/.npm key: continuwuity-rspress-${{ steps.runner-env.outputs.slug }}-${{ steps.runner-env.outputs.arch }}-node-${{ steps.runner-env.outputs.node_version }}-${{ hashFiles('package-lock.json') }} diff --git a/.forgejo/workflows/renovate.yml b/.forgejo/workflows/renovate.yml index 1f853fd61..ea3886e5d 100644 --- a/.forgejo/workflows/renovate.yml +++ b/.forgejo/workflows/renovate.yml @@ -55,7 +55,7 @@ jobs: run: /usr/local/renovate/node -e 'console.log(`node heap limit = ${require("v8").getHeapStatistics().heap_size_limit / (1024 * 1024)} Mb`)' - name: Restore renovate repo cache - uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 + uses: actions/cache/restore@v5 with: path: | /tmp/renovate/cache/renovate/repository @@ -64,7 +64,7 @@ jobs: renovate-repo-cache- - name: Restore renovate package cache - uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 + uses: actions/cache/restore@v5 with: path: | /tmp/renovate/cache/renovate/renovate-cache-sqlite @@ -73,7 +73,7 @@ jobs: renovate-package-cache- - name: Restore renovate OSV cache - uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 + uses: actions/cache/restore@v5 with: path: | /tmp/osv @@ -109,7 +109,7 @@ jobs: - name: Save renovate repo cache if: always() uses: - actions/cache/save@v4 + actions/cache/save@v5 with: path: | /tmp/renovate/cache/renovate/repository @@ -117,7 +117,7 @@ jobs: - name: Save renovate package cache if: always() - uses: actions/cache/save@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 + uses: actions/cache/save@v5 with: path: | /tmp/renovate/cache/renovate/renovate-cache-sqlite @@ -125,7 +125,7 @@ jobs: - name: Save renovate OSV cache if: always() - uses: actions/cache/save@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 + uses: actions/cache/save@v5 with: path: | /tmp/osv