Skip to content

Commit 22ada64

Browse files
authored
add rust cache
1 parent 1be7b12 commit 22ada64

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/rust.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,18 @@ jobs:
3030
build:
3131
runs-on: ubuntu-latest
3232
steps:
33-
- uses: actions/checkout@v2
33+
- uses: actions/checkout@v2
34+
- name: Cache Cargo Dependencies
35+
uses: actions/cache@v3
36+
with:
37+
path: |
38+
~/.cargo/registry
39+
~/.cargo/git
40+
target
41+
key: cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
42+
restore-keys: |
43+
cargo-${{ runner.os }}-
44+
3445
- name: Install Rust toolchain
3546
uses: actions-rs/toolchain@v1
3647
with:

0 commit comments

Comments
 (0)