From cc53b7647296725f7ee6bb22ae2d5581a1b3e21b Mon Sep 17 00:00:00 2001 From: Jay Oster Date: Wed, 18 Feb 2026 13:10:30 -0800 Subject: [PATCH 1/2] Update cache and checkout actions Trying to fix the broken CI cache. The old cache/save version complained that the cache was locked. No idea why. The action was used as documented. Moving the checkout action to the first step to align with documentation. And updating the action to the most recent version. --- .github/workflows/rust.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index bb144231..8c6935f0 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -22,8 +22,9 @@ jobs: task: [build, lint, fmt, test, docs, coverage, deny, insta, shear, vet] name: ${{ matrix.task }} steps: - - uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4 - id: cache + - uses: actions/checkout@v6 + - uses: actions/cache/restore@v5 + id: restore-cache with: path: | ~/.rustup @@ -32,7 +33,6 @@ jobs: ~/.cargo/.crates2.json key: toolchain-${{ matrix.task }} - uses: extractions/setup-just@e33e0265a09d6d736e2ee1e0eb685ef1de4669ff # v2 - - uses: actions/checkout@09d2acae674a48949e3602304ab46fd20ae0c42f # v4 - uses: Swatinem/rust-cache@7e1e2d0a10862b34e5df481373b2b0f295d1a2ef # v2 with: key: ${{ matrix.task }} @@ -46,11 +46,11 @@ jobs: file: lcov.info fail-on-error: false - if: ${{ github.ref == 'refs/heads/main' }} - uses: actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4 + uses: actions/cache/save@v5 with: path: | ~/.rustup ~/.cargo/bin/ ~/.cargo/.crates.toml ~/.cargo/.crates2.json - key: ${{ steps.cache.outputs.cache-primary-key }} + key: ${{ steps.restore-cache.outputs.cache-primary-key }} From d2d29ec09d1fbd8e66e54be41560b3be6c3e7068 Mon Sep 17 00:00:00 2001 From: Jay Oster Date: Wed, 18 Feb 2026 15:03:56 -0800 Subject: [PATCH 2/2] Pin actions to latest release hashes --- .github/workflows/rust.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 8c6935f0..2aca6e5d 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -22,8 +22,8 @@ jobs: task: [build, lint, fmt, test, docs, coverage, deny, insta, shear, vet] name: ${{ matrix.task }} steps: - - uses: actions/checkout@v6 - - uses: actions/cache/restore@v5 + - uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98 # v6 + - uses: actions/cache/restore@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5 id: restore-cache with: path: | @@ -46,7 +46,7 @@ jobs: file: lcov.info fail-on-error: false - if: ${{ github.ref == 'refs/heads/main' }} - uses: actions/cache/save@v5 + uses: actions/cache/save@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5 with: path: | ~/.rustup