@@ -47,18 +47,24 @@ jobs:
47
47
image : amd64/rust
48
48
steps :
49
49
- uses : actions/checkout@v4
50
- - name : Cache Cargo
51
- uses : actions/cache@v3
52
- with :
53
- # these represent dependencies downloaded by cargo
54
- # and thus do not depend on the OS, arch nor rust version.
55
- path : /github/home/.cargo
56
- key : cargo-cache-
57
50
- name : Setup Rust toolchain
58
51
uses : ./.github/actions/setup-builder
59
52
with :
60
53
rust-version : stable
61
54
55
+ - name : Cache Cargo
56
+ uses : actions/cache@v3
57
+ with :
58
+ path : |
59
+ ~/.cargo/bin/
60
+ ~/.cargo/registry/index/
61
+ ~/.cargo/registry/cache/
62
+ ~/.cargo/git/db/
63
+ ./target/
64
+ ./datafusion-cli/target/
65
+ # this key equals the ones on `linux-build-lib` for re-use
66
+ key : cargo-cache-benchmark-${{ hashFiles('datafusion/**/Cargo.toml', 'benchmarks/Cargo.toml', 'datafusion-cli/Cargo.toml') }}
67
+
62
68
- name : Check workspace without default features
63
69
run : cargo check --no-default-features -p datafusion
64
70
84
90
- uses : actions/checkout@v4
85
91
with :
86
92
submodules : true
87
- - name : Cache Cargo
88
- uses : actions/cache@v3
89
- with :
90
- path : /github/home/.cargo
91
- # this key equals the ones on `linux-build-lib` for re-use
92
- key : cargo-cache-
93
93
- name : Setup Rust toolchain
94
94
uses : ./.github/actions/setup-builder
95
95
with :
@@ -109,12 +109,6 @@ jobs:
109
109
- uses : actions/checkout@v4
110
110
with :
111
111
submodules : true
112
- - name : Cache Cargo
113
- uses : actions/cache@v3
114
- with :
115
- path : /github/home/.cargo
116
- # this key equals the ones on `linux-build-lib` for re-use
117
- key : cargo-cache-
118
112
- name : Setup Rust toolchain
119
113
uses : ./.github/actions/setup-builder
120
114
with :
@@ -211,12 +205,6 @@ jobs:
211
205
image : amd64/rust
212
206
steps :
213
207
- uses : actions/checkout@v4
214
- - name : Cache Cargo
215
- uses : actions/cache@v3
216
- with :
217
- path : /github/home/.cargo
218
- # this key equals the ones on `linux-build-lib` for re-use
219
- key : cargo-cache-
220
208
- name : Setup Rust toolchain
221
209
uses : ./.github/actions/setup-builder
222
210
with :
@@ -241,9 +229,14 @@ jobs:
241
229
- name : Cache Cargo
242
230
uses : actions/cache@v3
243
231
with :
244
- path : /github/home/.cargo
232
+ path : |
233
+ ~/.cargo/bin/
234
+ ~/.cargo/registry/index/
235
+ ~/.cargo/registry/cache/
236
+ ~/.cargo/git/db/
237
+ ./target/
245
238
# this key equals the ones on `linux-build-lib` for re-use
246
- key : cargo-cache-
239
+ key : cargo-cache-benchmark-${{ hashFiles('datafusion/**/Cargo.toml', 'benchmarks/Cargo.toml') }}
247
240
- name : Setup Rust toolchain
248
241
uses : ./.github/actions/setup-builder
249
242
with :
@@ -377,12 +370,6 @@ jobs:
377
370
- uses : actions/checkout@v4
378
371
with :
379
372
submodules : true
380
- - name : Cache Cargo
381
- uses : actions/cache@v3
382
- with :
383
- path : /github/home/.cargo
384
- # this key equals the ones on `linux-build-lib` for re-use
385
- key : cargo-cache-
386
373
- uses : actions/setup-python@v4
387
374
with :
388
375
python-version : " 3.8"
@@ -480,12 +467,6 @@ jobs:
480
467
- uses : actions/checkout@v4
481
468
with :
482
469
submodules : true
483
- - name : Cache Cargo
484
- uses : actions/cache@v3
485
- with :
486
- path : /github/home/.cargo
487
- # this key equals the ones on `linux-build-lib` for re-use
488
- key : cargo-cache-
489
470
- name : Setup Rust toolchain
490
471
uses : ./.github/actions/setup-builder
491
472
with :
@@ -506,12 +487,6 @@ jobs:
506
487
- uses : actions/checkout@v4
507
488
with :
508
489
submodules : true
509
- - name : Cache Cargo
510
- uses : actions/cache@v3
511
- with :
512
- path : /github/home/.cargo
513
- # this key equals the ones on `linux-build-lib` for re-use
514
- key : cargo-cache-
515
490
- name : Setup Rust toolchain
516
491
uses : ./.github/actions/setup-builder
517
492
with :
@@ -531,12 +506,6 @@ jobs:
531
506
- uses : actions/checkout@v4
532
507
with :
533
508
submodules : true
534
- - name : Cache Cargo
535
- uses : actions/cache@v3
536
- with :
537
- path : /github/home/.cargo
538
- # this key equals the ones on `linux-build-lib` for re-use
539
- key : cargo-cache-
540
509
- name : Setup Rust toolchain
541
510
uses : ./.github/actions/setup-builder
542
511
with :
@@ -563,12 +532,6 @@ jobs:
563
532
- uses : actions/checkout@v4
564
533
with :
565
534
submodules : true
566
- - name : Cache Cargo
567
- uses : actions/cache@v3
568
- with :
569
- path : /github/home/.cargo
570
- # this key equals the ones on `linux-build-lib` for re-use
571
- key : cargo-cache-
572
535
- name : Setup Rust toolchain
573
536
uses : ./.github/actions/setup-builder
574
537
with :
0 commit comments