Skip to content

Commit 73360f5

Browse files
committed
[workflow] Simplify caching
Remove the key on the Cargo lockfile
1 parent 2d43d64 commit 73360f5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
~/.rustup/update-hashes/
4646
.venv/
4747
target/
48-
key: build_and_test-${{ matrix.toolchain }}-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
48+
key: build_and_test-${{ matrix.toolchain }}-${{ runner.os }}
4949

5050
- name: Setup rust
5151
run: rustup toolchain install --profile minimal ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
@@ -94,7 +94,7 @@ jobs:
9494
~/.rustup/update-hashes/
9595
.venv/
9696
target/
97-
key: features-${{ matrix.features }}-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
97+
key: features-${{ matrix.features }}-${{ runner.os }}
9898

9999
- name: Setup rust
100100
run: rustup toolchain install --profile minimal stable && rustup default stable
@@ -120,7 +120,7 @@ jobs:
120120
~/.rustup/update-hashes/
121121
.venv/
122122
target/
123-
key: lint-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
123+
key: lint-${{ runner.os }}
124124

125125
- name: Setup rust
126126
run: rustup toolchain install --profile minimal -c rustfmt nightly && rustup default nightly

0 commit comments

Comments
 (0)