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