File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -11,13 +11,20 @@ jobs:
11
11
runs-on : ubuntu-latest
12
12
steps :
13
13
- uses : actions/checkout@v2
14
- - name : Cache cargo
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 target directory
15
20
uses : actions/cache@v2
16
21
with :
17
22
path : target
18
- key : cargo-build-${{ hashFiles('**/Cargo.lock') }}
23
+ key : cargo-build-${{ steps.rustc.outputs.version }}-${{ hashFiles('**/Cargo.lock') }}-${{ hashFiles('src/** ') }}
19
24
restore-keys : |
20
- cargo-build-
25
+ cargo-build-${{ steps.rustc.outputs.version }}-${{ hashFiles('**/Cargo.lock') }}-
26
+ cargo-build-${{ steps.rustc.outputs.version }}-
27
+
21
28
- run : cargo run
22
29
- run : cp CNAME ./site/
23
30
- run : touch site/.nojekyll
You can’t perform that action at this time.
0 commit comments