@@ -85,13 +85,17 @@ jobs:
85
85
toolchain : nightly
86
86
target : ${{ matrix.host }}
87
87
profile : minimal
88
+ - name : Checkout
89
+ uses : actions/checkout@v2.0.0
90
+ - name : Run cargo update
91
+ run : cargo update
88
92
- name : Cache cargo dir
89
93
uses : actions/cache@v1
90
94
with :
91
95
path : ~/.cargo
92
- key : ${{ runner.os }}-${{ matrix.host }}
93
- - name : Checkout
94
- uses : actions/checkout@v2.0.0
96
+ key : ${{ runner.os }}-${{ matrix.host }}-${{ hashFiles('Cargo.lock') }}
97
+ restore-keys : |
98
+ ${{ runner.os }}-${{ matrix.host }}
95
99
- name : Master Toolchain Setup
96
100
run : bash setup-toolchain.sh
97
101
env :
@@ -163,13 +167,17 @@ jobs:
163
167
toolchain : nightly
164
168
target : x86_64-unknown-linux-gnu
165
169
profile : minimal
170
+ - name : Checkout
171
+ uses : actions/checkout@v2.0.0
172
+ - name : Run cargo update
173
+ run : cargo update
166
174
- name : Cache cargo dir
167
175
uses : actions/cache@v1
168
176
with :
169
177
path : ~/.cargo
170
- key : ${{ runner.os }}-x86_64-unknown-linux-gnu
171
- - name : Checkout
172
- uses : actions/checkout@v2.0.0
178
+ key : ${{ runner.os }}-x86_64-unknown-linux-gnu-${{ hashFiles('Cargo.lock') }}
179
+ restore-keys : |
180
+ ${{ runner.os }}-x86_64-unknown-linux-gnu
173
181
- name : Master Toolchain Setup
174
182
run : bash setup-toolchain.sh
175
183
@@ -226,13 +234,17 @@ jobs:
226
234
toolchain : nightly
227
235
target : x86_64-unknown-linux-gnu
228
236
profile : minimal
237
+ - name : Checkout
238
+ uses : actions/checkout@v2.0.0
239
+ - name : Run cargo update
240
+ run : cargo update
229
241
- name : Cache cargo dir
230
242
uses : actions/cache@v1
231
243
with :
232
244
path : ~/.cargo
233
- key : ${{ runner.os }}-x86_64-unknown-linux-gnu
234
- - name : Checkout
235
- uses : actions/checkout@v2.0.0
245
+ key : ${{ runner.os }}-x86_64-unknown-linux-gnu-${{ hashFiles('Cargo.lock') }}
246
+ restore-keys : |
247
+ ${{ runner.os }}-x86_64-unknown-linux-gnu
236
248
- name : Master Toolchain Setup
237
249
run : bash setup-toolchain.sh
238
250
0 commit comments