Skip to content

Commit 080975a

Browse files
authored
Fix CI cache (#396)
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.
1 parent 01cb573 commit 080975a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/rust.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ jobs:
2222
task: [build, lint, fmt, test, docs, coverage, deny, insta, shear, vet]
2323
name: ${{ matrix.task }}
2424
steps:
25-
- uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4
26-
id: cache
25+
- uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98 # v6
26+
- uses: actions/cache/restore@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5
27+
id: restore-cache
2728
with:
2829
path: |
2930
~/.rustup
@@ -32,7 +33,6 @@ jobs:
3233
~/.cargo/.crates2.json
3334
key: toolchain-${{ matrix.task }}
3435
- uses: extractions/setup-just@e33e0265a09d6d736e2ee1e0eb685ef1de4669ff # v2
35-
- uses: actions/checkout@09d2acae674a48949e3602304ab46fd20ae0c42f # v4
3636
- uses: Swatinem/rust-cache@7e1e2d0a10862b34e5df481373b2b0f295d1a2ef # v2
3737
with:
3838
key: ${{ matrix.task }}
@@ -46,11 +46,11 @@ jobs:
4646
file: lcov.info
4747
fail-on-error: false
4848
- if: ${{ github.ref == 'refs/heads/main' }}
49-
uses: actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4
49+
uses: actions/cache/save@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5
5050
with:
5151
path: |
5252
~/.rustup
5353
~/.cargo/bin/
5454
~/.cargo/.crates.toml
5555
~/.cargo/.crates2.json
56-
key: ${{ steps.cache.outputs.cache-primary-key }}
56+
key: ${{ steps.restore-cache.outputs.cache-primary-key }}

0 commit comments

Comments
 (0)