File tree 1 file changed +36
-0
lines changed
1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 23
23
toolchain : stable
24
24
override : true
25
25
26
+ - name : Cache dependencies
27
+ uses : actions/cache@v2
28
+ with :
29
+ path : |
30
+ ~/.cargo/bin/
31
+ ~/.cargo/registry/index/
32
+ ~/.cargo/registry/cache/
33
+ ~/.cargo/git/db/
34
+ target/
35
+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
36
+ restore-keys : ${{ runner.os }}-cargo-
37
+
26
38
- name : Run cargo check
27
39
uses : actions-rs/cargo@v1
28
40
continue-on-error : true # WARNING: only for this example, remove it!
43
55
toolchain : stable
44
56
override : true
45
57
58
+ - name : Cache dependencies
59
+ uses : actions/cache@v2
60
+ with :
61
+ path : |
62
+ ~/.cargo/bin/
63
+ ~/.cargo/registry/index/
64
+ ~/.cargo/registry/cache/
65
+ ~/.cargo/git/db/
66
+ target/
67
+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
68
+ restore-keys : ${{ runner.os }}-cargo-
69
+
46
70
- name : Run cargo test
47
71
uses : actions-rs/cargo@v1
48
72
continue-on-error : true # WARNING: only for this example, remove it!
64
88
override : true
65
89
components : rustfmt, clippy
66
90
91
+ - name : Cache dependencies
92
+ uses : actions/cache@v2
93
+ with :
94
+ path : |
95
+ ~/.cargo/bin/
96
+ ~/.cargo/registry/index/
97
+ ~/.cargo/registry/cache/
98
+ ~/.cargo/git/db/
99
+ target/
100
+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
101
+ restore-keys : ${{ runner.os }}-cargo-
102
+
67
103
- name : Run cargo fmt
68
104
uses : actions-rs/cargo@v1
69
105
continue-on-error : true # WARNING: only for this example, remove it!
You can’t perform that action at this time.
0 commit comments