@@ -17,28 +17,28 @@ jobs:
17
17
with :
18
18
toolchain : stable
19
19
override : true
20
- - uses : actions-rs/cargo@v1
21
- with :
22
- command : install
23
- args : cargo-sweep
24
20
25
21
- name : Cache directories
26
- uses : actions/cache@v1
22
+ uses : actions/cache@v2
27
23
with :
28
24
path : |
29
25
~/.cargo/registry
30
26
~/.cargo/bin
31
27
~/.cargo/git
32
- key : cargo-dirs-${{ hashFiles('**/Cargo.lock') }}
33
- restore-keys : cargo-dirs-
28
+ key : cargo-test- dirs-${{ hashFiles('**/Cargo.lock') }}
29
+ restore-keys : cargo-test- dirs-
34
30
- name : Cache build
35
- uses : actions/cache@v1
31
+ uses : actions/cache@v2
36
32
with :
37
33
path : target
38
- key : cargo-build-${{ steps.install.outputs.rustc_hash }}-${{ hashFiles('**/Cargo.lock') }}
34
+ key : cargo-test- build-${{ steps.install.outputs.rustc_hash }}-${{ hashFiles('**/Cargo.lock') }}
39
35
restore-keys : |
40
- cargo-build-${{ steps.install.outputs.rustc_hash }}-
41
- cargo-build-
36
+ cargo-test-build-${{ steps.install.outputs.rustc_hash }}-
37
+ cargo-test-build-
38
+ - uses : actions-rs/cargo@v1
39
+ with :
40
+ command : install
41
+ args : cargo-sweep
42
42
43
43
- name : Register artifacts
44
44
uses : actions-rs/cargo@v1
@@ -102,28 +102,28 @@ jobs:
102
102
toolchain : stable
103
103
override : true
104
104
components : clippy
105
- - uses : actions-rs/cargo@v1
106
- with :
107
- command : install
108
- args : cargo-sweep
109
105
110
106
- name : Cache directories
111
- uses : actions/cache@v1
107
+ uses : actions/cache@v2
112
108
with :
113
109
path : |
114
110
~/.cargo/registry
115
111
~/.cargo/bin
116
112
~/.cargo/git
117
- key : cargo-dirs-${{ hashFiles('**/Cargo.lock') }}
118
- restore-keys : cargo-dirs-
113
+ key : cargo-clippy- dirs-${{ hashFiles('**/Cargo.lock') }}
114
+ restore-keys : cargo-clippy- dirs-
119
115
- name : Cache build
120
- uses : actions/cache@v1
116
+ uses : actions/cache@v2
121
117
with :
122
118
path : target
123
- key : cargo-build -${{ steps.install.outputs.rustc_hash }}-${{ hashFiles('**/Cargo.lock') }}
119
+ key : cargo-clippy -${{ steps.install.outputs.rustc_hash }}-${{ hashFiles('**/Cargo.lock') }}
124
120
restore-keys : |
125
- cargo-build-${{ steps.install.outputs.rustc_hash }}-
126
- cargo-build-
121
+ cargo-clippy-${{ steps.install.outputs.rustc_hash }}-
122
+ cargo-clippy-
123
+ - uses : actions-rs/cargo@v1
124
+ with :
125
+ command : install
126
+ args : cargo-sweep
127
127
128
128
- name : Register artifacts
129
129
uses : actions-rs/cargo@v1
0 commit comments