@@ -108,31 +108,42 @@ jobs:
108
108
109
109
# run tests on all workspace members with default feature list
110
110
cargo test
111
-
112
- # Switch to arrow crate
113
- cd arrow
114
- # re-run tests on arrow crate to ensure
115
- # all arrays are created correctly
116
- cargo test --features=force_validate
117
- cargo test --features=prettyprint
118
- # run test on arrow crate with minimal set of features
119
- cargo test --no-default-features
111
+
112
+ # re-run tests on arrow crate with all supported features
113
+ cargo test -p arrow --features=force_validate,prettyprint
114
+
115
+ # Test arrow examples
120
116
cargo run --example builders
121
117
cargo run --example dynamic_types
122
118
cargo run --example read_csv
123
119
cargo run --example read_csv_infer_schema
124
- cargo check --no-default-features
120
+
121
+ # Test compilation of arrow library crate with different feature combinations
122
+ cargo check -p arrow
123
+ cargo check -p arrow --no-default-features
124
+
125
+ # Test compilation of arrow targets with different feature combinations
126
+ cargo check -p arrow --all-targets
127
+ cargo check -p arrow --no-default-features --all-targets
125
128
126
- # Switch to parquet crate
127
- cd ../parquet
128
- # re-run tests on parquet crate with async feature enabled
129
- cargo test --features=async
130
- cargo check --no-default-features
129
+ # re-run tests on arrow-flight with all features
130
+ cargo test -p arrow-flight --all-features
131
131
132
- # Switch to arrow-flight
133
- cd ../arrow-flight
134
- cargo test --features=flight-sql-experimental
135
- cargo check --no-default-features
132
+ # re-run tests on parquet crate with all features
133
+ cargo test -p parquet --all-features
134
+
135
+ # Test compilation of parquet library crate with different feature combinations
136
+ cargo check -p parquet
137
+ cargo check -p parquet --no-default-features
138
+ cargo check -p parquet --no-default-features --features arrow
139
+
140
+ # Test compilation of parquet targets with different feature combinations
141
+ cargo check -p parquet --all-targets
142
+ cargo check -p parquet --no-default-features --all-targets
143
+ cargo check -p parquet --no-default-features --features arrow --all-targets
144
+
145
+ # Test compilation of parquet_derive macro with different feature combinations
146
+ cargo check -p parquet_derive
136
147
137
148
# test the --features "simd" of the arrow crate. This requires nightly.
138
149
linux-test-simd :
@@ -173,12 +184,12 @@ jobs:
173
184
export CARGO_TARGET_DIR="/github/home/target"
174
185
cd arrow
175
186
cargo test --features "simd"
176
- - name : Check new project build with simd features
187
+ - name : Check compilation with simd features
177
188
run : |
178
189
export CARGO_HOME="/github/home/.cargo"
179
190
export CARGO_TARGET_DIR="/github/home/target"
180
- cd arrow/test/dependency/ simd
181
- cargo check
191
+ cargo check -p arrow --features simd
192
+ cargo check -p arrow --features simd --all-targets
182
193
183
194
windows-and-macos :
184
195
name : Test on ${{ matrix.os }} Rust ${{ matrix.rust }}
@@ -435,54 +446,3 @@ jobs:
435
446
export CARGO_TARGET_DIR="/github/home/target"
436
447
export RUSTDOCFLAGS="-Dwarnings"
437
448
cargo doc --document-private-items --no-deps --workspace --all-features
438
-
439
-
440
- # test builds with various feature flag combinations outside the main workspace
441
- default-build :
442
- name : Feature Flag Builds ${{ matrix.rust }}
443
- runs-on : ubuntu-latest
444
- strategy :
445
- matrix :
446
- arch : [amd64]
447
- rust : [stable]
448
- container :
449
- image : ${{ matrix.arch }}/rust
450
- env :
451
- # Disable debug symbol generation to speed up CI build and keep memory down
452
- RUSTFLAGS : " -C debuginfo=0"
453
- steps :
454
- - uses : actions/checkout@v2
455
- - name : Cache Cargo
456
- uses : actions/cache@v3
457
- with :
458
- path : /github/home/.cargo
459
- # this key equals the ones on `linux-build-lib` for re-use
460
- key : cargo-cache3-
461
- - name : Cache Rust dependencies
462
- uses : actions/cache@v3
463
- with :
464
- path : /github/home/target
465
- # this key equals the ones on `linux-build-lib` for re-use
466
- key : ${{ runner.os }}-${{ matrix.arch }}-target-cache3-${{ matrix.rust }}
467
- - name : Setup Rust toolchain
468
- uses : ./.github/actions/setup-builder
469
- with :
470
- rust-version : ${{ matrix.rust }}
471
- - name : Arrow Build with default features
472
- run : |
473
- export CARGO_HOME="/github/home/.cargo"
474
- export CARGO_TARGET_DIR="/github/home/target"
475
- cd arrow/test/dependency/default-features
476
- cargo check
477
- - name : Arrow Build with default-features=false
478
- run : |
479
- export CARGO_HOME="/github/home/.cargo"
480
- export CARGO_TARGET_DIR="/github/home/target"
481
- cd arrow/test/dependency/no-default-features
482
- cargo check
483
- - name : Parquet Derive build with default-features
484
- run : |
485
- export CARGO_HOME="/github/home/.cargo"
486
- export CARGO_TARGET_DIR="/github/home/target"
487
- cd parquet_derive/test/dependency/default-features
488
- cargo check
0 commit comments