File tree 1 file changed +25
-0
lines changed
1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change 29
29
toolchain : nightly
30
30
override : true
31
31
32
+ # Cache Cargo dependencies
33
+ - name : Cache Cargo registry
34
+ uses : actions/cache@v3
35
+ with :
36
+ path : ~/.cargo/registry
37
+ key : ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
38
+ restore-keys : |
39
+ ${{ runner.os }}-cargo-registry-
40
+
41
+ - name : Cache Cargo index
42
+ uses : actions/cache@v3
43
+ with :
44
+ path : ~/.cargo/git
45
+ key : ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
46
+ restore-keys : |
47
+ ${{ runner.os }}-cargo-index-
48
+
49
+ - name : Cache target directory
50
+ uses : actions/cache@v3
51
+ with :
52
+ path : target
53
+ key : ${{ runner.os }}-cargo-target-${{ hashFiles('**/Cargo.lock') }}
54
+ restore-keys : |
55
+ ${{ runner.os }}-cargo-target-
56
+
32
57
# Install Rust dependencies
33
58
- name : Install dependencies
34
59
run : cargo fetch
You can’t perform that action at this time.
0 commit comments