Skip to content

Commit d8e66f8

Browse files
committed
Cache cargo binaries and update rustup key to avoid loading old cache
1 parent bfc6a80 commit d8e66f8

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,17 @@ jobs:
4141
uses: actions/cache@v1
4242
with:
4343
path: ~/.rustup
44-
key: ${{ runner.os }}-rustup-${{ matrix.rust }}-${{ hashFiles('**/Cargo.toml') }}
44+
key: ${{ runner.os }}-rustup2-${{ matrix.rust }}-${{ hashFiles('**/Cargo.toml') }}
4545
restore-key: |
46-
${{ runner.os }}-rustup-${{ matrix.rust }}-
46+
${{ runner.os }}-rustup2-${{ matrix.rust }}-
47+
48+
- name: Cache cargo binaries
49+
uses: actions/cache@v1
50+
with:
51+
path: ~/.cargo/bin
52+
key: ${{ runner.os }}-cargo-bin-${{ matrix.rust }}-${{ hashFiles('**/Cargo.toml') }}
53+
restore-key: |
54+
${{ runner.os }}-cargo-bin-${{ matrix.rust }}-
4755
4856
- name: Cache cargo registry cache
4957
uses: actions/cache@v1

0 commit comments

Comments
 (0)