Skip to content

Commit 9e7ff74

Browse files
committed
try resetting the caches
also reorder the lines to be more semantically grouped
1 parent 7d41737 commit 9e7ff74

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ jobs:
5656
# contains package information of crates installed via `cargo install`.
5757
~/.cargo/.crates.toml
5858
~/.cargo/.crates2.json
59-
key: ${{ runner.os }}-cargo-reset20230315-${{ hashFiles('**/Cargo.lock') }}
60-
restore-keys: ${{ runner.os }}-cargo-reset20230315
59+
key: ${{ runner.os }}-cargo-reset20240315-${{ hashFiles('**/Cargo.lock') }}
60+
restore-keys: ${{ runner.os }}-cargo-reset20240315
6161

6262
- name: Install rustup-toolchain-install-master
6363
if: ${{ steps.cache.outputs.cache-hit != 'true' }}
@@ -98,11 +98,12 @@ jobs:
9898
with:
9999
path: |
100100
# Taken from <https://doc.rust-lang.org/nightly/cargo/guide/cargo-home.html#caching-the-cargo-home-in-ci>.
101-
~/.cargo/bin
101+
# Cache package/registry information
102102
~/.cargo/registry/index
103103
~/.cargo/registry/cache
104104
~/.cargo/git/db
105-
# contains package information of crates installed via `cargo install`.
105+
# Cache installed binaries
106+
~/.cargo/bin
106107
~/.cargo/.crates.toml
107108
~/.cargo/.crates2.json
108109
key: ${{ runner.os }}-cargo-reset20230315-${{ hashFiles('**/Cargo.lock') }}

0 commit comments

Comments
 (0)