Skip to content

Commit 6f9ad30

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

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.github/workflows/ci.yml

+10-8
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,16 @@ jobs:
4949
with:
5050
path: |
5151
# Taken from <https://doc.rust-lang.org/nightly/cargo/guide/cargo-home.html#caching-the-cargo-home-in-ci>.
52-
~/.cargo/bin
52+
# Cache package/registry information
5353
~/.cargo/registry/index
5454
~/.cargo/registry/cache
5555
~/.cargo/git/db
56-
# contains package information of crates installed via `cargo install`.
56+
# Cache installed binaries
57+
~/.cargo/bin
5758
~/.cargo/.crates.toml
5859
~/.cargo/.crates2.json
59-
key: ${{ runner.os }}-cargo-reset20230315-${{ hashFiles('**/Cargo.lock') }}
60-
restore-keys: ${{ runner.os }}-cargo-reset20230315
60+
key: cargo-${{ runner.os }}-reset20240331-${{ hashFiles('**/Cargo.lock') }}
61+
restore-keys: cargo-${{ runner.os }}-reset20240331
6162

6263
- name: Install rustup-toolchain-install-master
6364
if: ${{ steps.cache.outputs.cache-hit != 'true' }}
@@ -98,15 +99,16 @@ jobs:
9899
with:
99100
path: |
100101
# Taken from <https://doc.rust-lang.org/nightly/cargo/guide/cargo-home.html#caching-the-cargo-home-in-ci>.
101-
~/.cargo/bin
102+
# Cache package/registry information
102103
~/.cargo/registry/index
103104
~/.cargo/registry/cache
104105
~/.cargo/git/db
105-
# contains package information of crates installed via `cargo install`.
106+
# Cache installed binaries
107+
~/.cargo/bin
106108
~/.cargo/.crates.toml
107109
~/.cargo/.crates2.json
108-
key: ${{ runner.os }}-cargo-reset20230315-${{ hashFiles('**/Cargo.lock') }}
109-
restore-keys: ${{ runner.os }}-cargo-reset20230315
110+
key: cargo-${{ runner.os }}-reset20240331-${{ hashFiles('**/Cargo.lock') }}
111+
restore-keys: cargo-${{ runner.os }}-reset20240331
110112

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

0 commit comments

Comments
 (0)