38
38
with :
39
39
go-version : ' ^1.16'
40
40
41
+ - name : Cache
42
+ if : ${{ env.ACT }}
43
+ uses : actions/cache@v2
44
+ with :
45
+ path : |
46
+ ~/go/pkg/mod
47
+ key : licenses-${{ hashFiles('.github/workflows/rust.yml') }}
48
+
41
49
- name : Check licenses
42
50
run : |
43
51
go install github.com/google/addlicense@latest
@@ -53,22 +61,19 @@ jobs:
53
61
with :
54
62
go-version : ' ^1.16'
55
63
56
- - name : Install dependencies
57
- if : ${{ env.ACT }}
58
- run : |
59
- go install github.com/bazelbuild/[email protected]
60
-
61
64
- name : Cache
62
65
uses : actions/cache@v2
63
66
with :
64
67
path : |
65
68
~/.cache/bazel
66
69
~/.cache/bazelisk
67
- ~/.cargo/.crates.toml
68
- ~/.cargo/.crates2.json
69
- ~/.cargo/bin
70
- ~/.cargo/registry
71
- key : ${{ hashFiles('WORKSPACE', '.bazelrc', '.bazelversion', 'bazel/cargo/Cargo.Bazel.lock', 'bazel/dependencies.bzl', 'bazel/repositories.bzl') }}
70
+ ~/go/pkg/mod
71
+ key : bazel-${{ hashFiles('WORKSPACE', '.bazelrc', '.bazelversion', 'bazel/cargo/Cargo.Bazel.lock', 'bazel/dependencies.bzl', 'bazel/repositories.bzl') }}
72
+
73
+ - name : Install dependencies
74
+ if : ${{ env.ACT }}
75
+ run : |
76
+ go install github.com/bazelbuild/[email protected]
72
77
73
78
- name : Build (wasm32-unknown-unknown)
74
79
run : bazelisk --noworkspace_rc build --noenable_bzlmod --platforms=@rules_rust//rust/platform:wasm //...
@@ -97,6 +102,19 @@ jobs:
97
102
steps :
98
103
- uses : actions/checkout@v2
99
104
105
+ - name : Cache
106
+ if : ${{ env.ACT }}
107
+ uses : actions/cache@v2
108
+ with :
109
+ path : |
110
+ ~/.cargo/.crates.toml
111
+ ~/.cargo/.crates2.json
112
+ ~/.cargo/bin
113
+ ~/.cargo/registry
114
+ ~/.rustup
115
+ **/target
116
+ key : msrv-${{ hashFiles('.github/workflows/rust.yml', 'Cargo.toml') }}
117
+
100
118
- name : Install dependencies
101
119
if : ${{ env.ACT }}
102
120
run : |
@@ -146,6 +164,19 @@ jobs:
146
164
steps :
147
165
- uses : actions/checkout@v2
148
166
167
+ - name : Cache
168
+ if : ${{ env.ACT }}
169
+ uses : actions/cache@v2
170
+ with :
171
+ path : |
172
+ ~/.cargo/.crates.toml
173
+ ~/.cargo/.crates2.json
174
+ ~/.cargo/bin
175
+ ~/.cargo/registry
176
+ ~/.rustup
177
+ **/target
178
+ key : stable-${{ hashFiles('.github/workflows/rust.yml', 'Cargo.toml') }}
179
+
149
180
- name : Install dependencies
150
181
if : ${{ env.ACT }}
151
182
run : |
@@ -194,6 +225,19 @@ jobs:
194
225
steps :
195
226
- uses : actions/checkout@v2
196
227
228
+ - name : Cache
229
+ if : ${{ env.ACT }}
230
+ uses : actions/cache@v2
231
+ with :
232
+ path : |
233
+ ~/.cargo/.crates.toml
234
+ ~/.cargo/.crates2.json
235
+ ~/.cargo/bin
236
+ ~/.cargo/registry
237
+ ~/.rustup
238
+ **/target
239
+ key : nightly-${{ hashFiles('.github/workflows/rust.yml', 'Cargo.toml') }}
240
+
197
241
- name : Install dependencies
198
242
if : ${{ env.ACT }}
199
243
run : |
@@ -240,6 +284,18 @@ jobs:
240
284
steps :
241
285
- uses : actions/checkout@v2
242
286
287
+ - name : Cache
288
+ if : ${{ env.ACT }}
289
+ uses : actions/cache@v2
290
+ with :
291
+ path : |
292
+ ~/.cargo/.crates.toml
293
+ ~/.cargo/.crates2.json
294
+ ~/.cargo/bin
295
+ ~/.cargo/registry
296
+ ~/.rustup
297
+ key : outdated-${{ hashFiles('.github/workflows/rust.yml', 'Cargo.toml') }}
298
+
243
299
- name : Install dependencies
244
300
if : ${{ env.ACT }}
245
301
run : |
@@ -260,6 +316,18 @@ jobs:
260
316
steps :
261
317
- uses : actions/checkout@v2
262
318
319
+ - name : Cache
320
+ if : ${{ env.ACT }}
321
+ uses : actions/cache@v2
322
+ with :
323
+ path : |
324
+ ~/.cargo/.crates.toml
325
+ ~/.cargo/.crates2.json
326
+ ~/.cargo/bin
327
+ ~/.cargo/registry
328
+ ~/.rustup
329
+ key : audit-${{ hashFiles('.github/workflows/rust.yml', 'Cargo.toml') }}
330
+
263
331
- name : Install dependencies
264
332
if : ${{ env.ACT }}
265
333
run : |
@@ -299,6 +367,19 @@ jobs:
299
367
steps :
300
368
- uses : actions/checkout@v2
301
369
370
+ - name : Cache
371
+ if : ${{ env.ACT }}
372
+ uses : actions/cache@v2
373
+ with :
374
+ path : |
375
+ ~/.cargo/.crates.toml
376
+ ~/.cargo/.crates2.json
377
+ ~/.cargo/bin
378
+ ~/.cargo/registry
379
+ ~/.rustup
380
+ **/target
381
+ key : example-${{ matrix.example }}-${{ hashFiles('.github/workflows/rust.yml', 'Cargo.toml') }}
382
+
302
383
- name : Install dependencies
303
384
if : ${{ env.ACT }}
304
385
run : |
@@ -363,6 +444,19 @@ jobs:
363
444
steps :
364
445
- uses : actions/checkout@v2
365
446
447
+ - name : Cache
448
+ if : ${{ env.ACT }}
449
+ uses : actions/cache@v2
450
+ with :
451
+ path : |
452
+ ~/.cargo/.crates.toml
453
+ ~/.cargo/.crates2.json
454
+ ~/.cargo/bin
455
+ ~/.cargo/registry
456
+ ~/.rustup
457
+ **/target
458
+ key : reactor-${{ matrix.example }}-${{ hashFiles('.github/workflows/rust.yml', 'Cargo.toml') }}
459
+
366
460
- name : Install dependencies
367
461
if : ${{ env.ACT }}
368
462
run : |
0 commit comments