Skip to content

Commit de8456a

Browse files
committed
1 parent 4952d8c commit de8456a

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -291,14 +291,22 @@ jobs:
291291
make install
292292
ls -al $HOME/extern/*
293293
294-
- name: Cache Rust
294+
- name: Cache Cargo
295295
uses: actions/cache@v2
296296
with:
297297
path: |
298-
~/.cargo/
299-
target/
298+
~/.cargo/bin/
299+
~/.cargo/registry/index/
300+
~/.cargo/registry/cache/
301+
~/.cargo/git/db/
300302
key: cargo-${{ matrix.name }}-${{ hashFiles('**/Cargo.toml') }}
301303

304+
- name: Cache Rust Target
305+
uses: actions/cache@v2
306+
with:
307+
path: target/
308+
key: rust-${{ matrix.name }}-${{ hashFiles('**/Cargo.toml') }}
309+
302310
- name: Install Rust toolchain
303311
uses: actions-rs/toolchain@v1
304312
with:

0 commit comments

Comments
 (0)