Skip to content

Commit 15d67fa

Browse files
committed
Modify our cache keys instead
1 parent 2b6ddc7 commit 15d67fa

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,8 @@ jobs:
5454
# contains package information of crates installed via `cargo install`.
5555
~/.cargo/.crates.toml
5656
~/.cargo/.crates2.json
57-
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
58-
restore-keys: ${{ runner.os }}-cargo
59-
60-
# Since #2806 we no longer install these binaries to ~/.cargo/bin, so the binaries restored by the cache
61-
# don't work, but they take precedence on PATH so we need to manually delete them for a while.
62-
- name: Delete stale miri and cargo-miri binaries
63-
shell: bash
64-
run: rm -f ~/.cargo/bin/{miri,cargo-miri}
57+
key: ${{ runner.os }}-cargo-installfix-${{ hashFiles('**/Cargo.lock') }}
58+
restore-keys: ${{ runner.os }}-cargo-installfix
6559

6660
- name: Install rustup-toolchain-install-master
6761
if: ${{ steps.cache.outputs.cache-hit != 'true' }}
@@ -112,8 +106,8 @@ jobs:
112106
# contains package information of crates installed via `cargo install`.
113107
~/.cargo/.crates.toml
114108
~/.cargo/.crates2.json
115-
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
116-
restore-keys: ${{ runner.os }}-cargo
109+
key: ${{ runner.os }}-cargo-installfix-${{ hashFiles('**/Cargo.lock') }}
110+
restore-keys: ${{ runner.os }}-cargo-installfix
117111

118112
- name: Install rustup-toolchain-install-master
119113
if: ${{ steps.cache.outputs.cache-hit != 'true' }}

0 commit comments

Comments
 (0)