@@ -43,14 +43,10 @@ jobs:
43
43
toolchain : stable
44
44
override : true
45
45
46
- - uses : actions/ cache@v2
46
+ - uses : Swatinem/rust- cache@v1
47
47
with :
48
- path : |
49
- ~/.cargo/registry
50
- ~/.cargo/git
51
- target
52
- key : ${{ runner.os }}-check-${{ matrix.runtime }}-${{ matrix.tls }}-${{ hashFiles('**/Cargo.lock') }}
53
-
48
+ key : ${{ runner.os }}-check-${{ matrix.runtime }}-${{ matrix.tls }}
49
+
54
50
- uses : actions-rs/cargo@v1
55
51
with :
56
52
command : check
82
78
toolchain : stable
83
79
override : true
84
80
85
- - uses : actions/ cache@v2
81
+ - uses : Swatinem/rust- cache@v1
86
82
with :
87
- path : |
88
- ~/.cargo/registry
89
- ~/.cargo/git
90
- target
91
- key : ${{ runner.os }}-test-${{ hashFiles('**/Cargo.lock') }}
83
+ key : ${{ runner.os }}-test
92
84
93
85
- uses : actions-rs/cargo@v1
94
86
with :
@@ -127,13 +119,9 @@ jobs:
127
119
target : ${{ matrix.target }}
128
120
override : true
129
121
130
- - uses : actions/ cache@v2
122
+ - uses : Swatinem/rust- cache@v1
131
123
with :
132
- path : |
133
- ~/.cargo/registry
134
- ~/.cargo/git
135
- target
136
- key : ${{ runner.os }}-cli-${{ hashFiles('**/Cargo.lock') }}
124
+ key : ${{ runner.os }}-cli
137
125
138
126
- uses : actions-rs/cargo@v1
139
127
with :
@@ -162,13 +150,9 @@ jobs:
162
150
toolchain : stable
163
151
override : true
164
152
165
- - uses : actions/ cache@v2
153
+ - uses : Swatinem/rust- cache@v1
166
154
with :
167
- path : |
168
- ~/.cargo/registry
169
- ~/.cargo/git
170
- target
171
- key : ${{ runner.os }}-sqlite-${{ matrix.runtime }}-${{ matrix.tls }}-${{ hashFiles('**/Cargo.lock') }}
155
+ key : ${{ runner.os }}-sqlite-${{ matrix.runtime }}-${{ matrix.tls }}
172
156
173
157
- uses : actions-rs/cargo@v1
174
158
with :
@@ -199,13 +183,9 @@ jobs:
199
183
toolchain : stable
200
184
override : true
201
185
202
- - uses : actions/ cache@v2
186
+ - uses : Swatinem/rust- cache@v1
203
187
with :
204
- path : |
205
- ~/.cargo/registry
206
- ~/.cargo/git
207
- target
208
- key : ${{ runner.os }}-postgres-${{ matrix.runtime }}-${{ matrix.tls }}-${{ hashFiles('**/Cargo.lock') }}
188
+ key : ${{ runner.os }}-postgres-${{ matrix.runtime }}-${{ matrix.tls }}
209
189
210
190
- uses : actions-rs/cargo@v1
211
191
env :
@@ -263,13 +243,9 @@ jobs:
263
243
toolchain : stable
264
244
override : true
265
245
266
- - uses : actions/ cache@v2
246
+ - uses : Swatinem/rust- cache@v1
267
247
with :
268
- path : |
269
- ~/.cargo/registry
270
- ~/.cargo/git
271
- target
272
- key : ${{ runner.os }}-mysql-${{ matrix.runtime }}-${{ matrix.tls }}-${{ hashFiles('**/Cargo.lock') }}
248
+ key : ${{ runner.os }}-mysql-${{ matrix.runtime }}-${{ matrix.tls }}
273
249
274
250
- uses : actions-rs/cargo@v1
275
251
with :
@@ -307,14 +283,9 @@ jobs:
307
283
toolchain : stable
308
284
override : true
309
285
310
- # same Cargo features as MySQL so the same cache can be used
311
- - uses : actions/cache@v2
286
+ - uses : Swatinem/rust-cache@v1
312
287
with :
313
- path : |
314
- ~/.cargo/registry
315
- ~/.cargo/git
316
- target
317
- key : ${{ runner.os }}-mysql-${{ matrix.runtime }}-${{ matrix.tls }}-${{ hashFiles('**/Cargo.lock') }}
288
+ key : ${{ runner.os }}-mysql-${{ matrix.runtime }}-${{ matrix.tls }}
318
289
319
290
- uses : actions-rs/cargo@v1
320
291
with :
@@ -352,12 +323,8 @@ jobs:
352
323
toolchain : stable
353
324
override : true
354
325
355
- - uses : actions/ cache@v2
326
+ - uses : Swatinem/rust- cache@v1
356
327
with :
357
- path : |
358
- ~/.cargo/registry
359
- ~/.cargo/git
360
- target
361
328
key : ${{ runner.os }}-mssql-${{ matrix.runtime }}-${{ matrix.tls }}-${{ hashFiles('**/Cargo.lock') }}
362
329
363
330
- uses : actions-rs/cargo@v1
0 commit comments