File tree Expand file tree Collapse file tree 1 file changed +1
-27
lines changed Expand file tree Collapse file tree 1 file changed +1
-27
lines changed Original file line number Diff line number Diff line change 11
11
steps :
12
12
- uses : actions/checkout@v2
13
13
14
- - name : Detect the installed Rust version
15
- id : rustc
16
- run : echo "::set-output name=version::$(rustc -V)"
17
-
18
- - name : Cache Cargo's registry cache
19
- uses : actions/cache@v2
20
- with :
21
- path : ~/.cargo/registry/cache
22
- key : cargo-registry-cache-${{ hashFiles('**/Cargo.lock') }}
23
- restore-keys : |
24
- cargo-registry-cache-
25
-
26
- - name : Cache Cargo's registry index
27
- uses : actions/cache@v2
28
- with :
29
- path : ~/.cargo/registry/index
30
- key : cargo-registry-index-${{ hashFiles('**/Cargo.lock') }}
31
- restore-keys : |
32
- cargo-registry-index-
33
-
34
- - name : Cache Cargo's target directory
35
- uses : actions/cache@v2
36
- with :
37
- path : target
38
- key : cargo-build-${{ steps.rustc.outputs.version }}-${{ hashFiles('**/Cargo.lock') }}
39
- restore-keys : |
40
- cargo-build-${{ steps.rustc.outputs.version }}-
14
+ - uses : Swatinem/rust-cache@v2.5.0
41
15
42
16
- run : cargo run
43
17
- run : cp CNAME ./site/
You can’t perform that action at this time.
0 commit comments