@@ -40,28 +40,12 @@ jobs:
40
40
RUSTFLAGS : " -C debuginfo=1"
41
41
steps :
42
42
- uses : actions/checkout@v2
43
- - name : Cache Cargo
44
- uses : actions/cache@v3
45
- with :
46
- # these represent dependencies downloaded by cargo
47
- # and thus do not depend on the OS, arch nor rust version.
48
- path : /github/home/.cargo
49
- key : cargo-cache3-
50
- - name : Cache Rust dependencies
51
- uses : actions/cache@v3
52
- with :
53
- # these represent compiled steps of both dependencies and arrow
54
- # and thus are specific for a particular OS, arch and rust version.
55
- path : /github/home/target
56
- key : ${{ runner.os }}-${{ matrix.arch }}-target-cache3-${{ matrix.rust }}-
57
43
- name : Setup Rust toolchain
58
44
uses : ./.github/actions/setup-builder
59
45
with :
60
46
rust-version : ${{ matrix.rust }}
61
47
- name : Build Workspace
62
48
run : |
63
- export CARGO_HOME="/github/home/.cargo"
64
- export CARGO_TARGET_DIR="/github/home/target"
65
49
cargo build
66
50
67
51
# test the crate
@@ -81,24 +65,10 @@ jobs:
81
65
RUSTFLAGS : " -C debuginfo=1"
82
66
ARROW_TEST_DATA : /__w/arrow-rs/arrow-rs/testing/data
83
67
PARQUET_TEST_DATA : /__w/arrow-rs/arrow-rs/parquet-testing/data
84
- CARGO_HOME : /github/home/.cargo
85
- CARGO_TARGET_DIR : /github/home/target
86
68
steps :
87
69
- uses : actions/checkout@v2
88
70
with :
89
71
submodules : true
90
- - name : Cache Cargo
91
- uses : actions/cache@v3
92
- with :
93
- path : /github/home/.cargo
94
- # this key equals the ones on `linux-build-lib` for re-use
95
- key : cargo-cache3-
96
- - name : Cache Rust dependencies
97
- uses : actions/cache@v3
98
- with :
99
- path : /github/home/target
100
- # this key equals the ones on `linux-build-lib` for re-use
101
- key : ${{ runner.os }}-${{ matrix.arch }}-target-cache3-${{ matrix.rust }}
102
72
- name : Setup Rust toolchain
103
73
uses : ./.github/actions/setup-builder
104
74
with :
@@ -161,22 +131,10 @@ jobs:
161
131
# "1" means line tables only, which is useful for panic tracebacks.
162
132
RUSTFLAGS : " -C debuginfo=1"
163
133
ARROW_TEST_DATA : /__w/arrow-rs/arrow-rs/testing/data
164
- CARGO_HOME : /github/home/.cargo
165
- CARGO_TARGET_DIR : /github/home/target
166
134
steps :
167
135
- uses : actions/checkout@v2
168
136
with :
169
137
submodules : true
170
- - name : Cache Cargo
171
- uses : actions/cache@v3
172
- with :
173
- path : /github/home/.cargo
174
- key : cargo-nightly-cache3-
175
- - name : Cache Rust dependencies
176
- uses : actions/cache@v3
177
- with :
178
- path : /github/home/target
179
- key : ${{ runner.os }}-${{ matrix.arch }}-target-nightly-cache3-${{ matrix.rust }}
180
138
- name : Setup Rust toolchain
181
139
uses : ./.github/actions/setup-builder
182
140
with :
@@ -234,18 +192,6 @@ jobs:
234
192
- uses : actions/checkout@v2
235
193
with :
236
194
submodules : true
237
- - name : Cache Cargo
238
- uses : actions/cache@v3
239
- with :
240
- path : /github/home/.cargo
241
- # this key equals the ones on `linux-build-lib` for re-use
242
- key : cargo-cache3-
243
- - name : Cache Rust dependencies
244
- uses : actions/cache@v3
245
- with :
246
- path : /github/home/target
247
- # this key equals the ones on `linux-build-lib` for re-use
248
- key : ${{ runner.os }}-${{ matrix.arch }}-target-cache3-${{ matrix.rust }}
249
195
- name : Setup Rust toolchain
250
196
uses : ./.github/actions/setup-builder
251
197
with :
@@ -255,8 +201,6 @@ jobs:
255
201
rustup component add rustfmt clippy
256
202
- name : Run clippy
257
203
run : |
258
- export CARGO_HOME="/github/home/.cargo"
259
- export CARGO_TARGET_DIR="/github/home/target"
260
204
cargo clippy --features test_common --features prettyprint --features=async --all-targets --workspace -- -D warnings
261
205
262
206
check_benches :
@@ -276,27 +220,13 @@ jobs:
276
220
- uses : actions/checkout@v2
277
221
with :
278
222
submodules : true
279
- - name : Cache Cargo
280
- uses : actions/cache@v3
281
- with :
282
- path : /github/home/.cargo
283
- # this key equals the ones on `linux-build-lib` for re-use
284
- key : cargo-cache3-
285
- - name : Cache Rust dependencies
286
- uses : actions/cache@v3
287
- with :
288
- path : /github/home/target
289
- # this key equals the ones on `linux-build-lib` for re-use
290
- key : ${{ runner.os }}-${{ matrix.arch }}-target-cache3-${{ matrix.rust }}
291
223
- name : Setup Rust toolchain
292
224
uses : ./.github/actions/setup-builder
293
225
with :
294
226
rust-version : ${{ matrix.rust }}
295
227
- name : Check benchmarks
296
228
run : |
297
- export CARGO_HOME="/github/home/.cargo"
298
- export CARGO_TARGET_DIR="/github/home/target"
299
- cargo check --benches --workspace --features test_common,prettyprint,async,experimental
229
+ cargo check --benches --workspace --features test_common,prettyprint,async,experimental
300
230
301
231
lint :
302
232
name : Lint (cargo fmt)
@@ -396,8 +326,6 @@ jobs:
396
326
rustup target add wasm32-wasi
397
327
- name : Build arrow crate
398
328
run : |
399
- export CARGO_HOME="/github/home/.cargo"
400
- export CARGO_TARGET_DIR="/github/home/target"
401
329
cd arrow
402
330
cargo build --no-default-features --features=csv,ipc,simd --target wasm32-unknown-unknown
403
331
cargo build --no-default-features --features=csv,ipc,simd --target wasm32-wasi
@@ -416,6 +344,7 @@ jobs:
416
344
# Disable full debug symbol generation to speed up CI build and keep memory down
417
345
# "1" means line tables only, which is useful for panic tracebacks.
418
346
RUSTFLAGS : " -C debuginfo=1"
347
+ RUSTDOCFLAGS : " -Dwarnings"
419
348
steps :
420
349
- uses : actions/checkout@v2
421
350
with :
@@ -424,23 +353,10 @@ jobs:
424
353
run : |
425
354
apt update
426
355
apt install -y libpython3.9-dev
427
- - name : Cache Cargo
428
- uses : actions/cache@v3
429
- with :
430
- path : /github/home/.cargo
431
- key : cargo-nightly-cache3-
432
- - name : Cache Rust dependencies
433
- uses : actions/cache@v3
434
- with :
435
- path : /github/home/target
436
- key : ${{ runner.os }}-${{ matrix.arch }}-target-nightly-cache3-${{ matrix.rust }}
437
356
- name : Setup Rust toolchain
438
357
uses : ./.github/actions/setup-builder
439
358
with :
440
359
rust-version : ${{ matrix.rust }}
441
360
- name : Run cargo doc
442
361
run : |
443
- export CARGO_HOME="/github/home/.cargo"
444
- export CARGO_TARGET_DIR="/github/home/target"
445
- export RUSTDOCFLAGS="-Dwarnings"
446
362
cargo doc --document-private-items --no-deps --workspace --all-features
0 commit comments