30
30
runs-on : ubuntu-latest
31
31
strategy :
32
32
matrix :
33
- arch : [amd64]
34
- rust : [stable]
33
+ arch : [ amd64 ]
34
+ rust : [ stable ]
35
35
container :
36
36
image : ${{ matrix.arch }}/rust
37
37
env :
@@ -67,12 +67,12 @@ jobs:
67
67
# test the crate
68
68
linux-test :
69
69
name : Test Workspace on AMD64 Rust ${{ matrix.rust }}
70
- needs : [linux-build-lib]
70
+ needs : [ linux-build-lib ]
71
71
runs-on : ubuntu-latest
72
72
strategy :
73
73
matrix :
74
- arch : [amd64]
75
- rust : [stable]
74
+ arch : [ amd64 ]
75
+ rust : [ stable ]
76
76
container :
77
77
image : ${{ matrix.arch }}/rust
78
78
env :
81
81
RUSTFLAGS : " -C debuginfo=1"
82
82
ARROW_TEST_DATA : /__w/arrow-rs/arrow-rs/testing/data
83
83
PARQUET_TEST_DATA : /__w/arrow-rs/arrow-rs/parquet-testing/data
84
+ CARGO_HOME : /github/home/.cargo
85
+ CARGO_TARGET_DIR : /github/home/target
84
86
steps :
85
87
- uses : actions/checkout@v2
86
88
with :
@@ -103,47 +105,45 @@ jobs:
103
105
rust-version : ${{ matrix.rust }}
104
106
- name : Run tests
105
107
run : |
106
- export CARGO_HOME="/github/home/.cargo"
107
- export CARGO_TARGET_DIR="/github/home/target"
108
-
109
108
# run tests on all workspace members with default feature list
110
109
cargo test
111
-
112
- # re- run tests on arrow crate with all supported features
110
+ - name : Re-run tests with all supported features
111
+ run : |
113
112
cargo test -p arrow --features=force_validate,prettyprint
114
-
113
+ - name : Run examples
114
+ run : |
115
115
# Test arrow examples
116
116
cargo run --example builders
117
117
cargo run --example dynamic_types
118
118
cargo run --example read_csv
119
119
cargo run --example read_csv_infer_schema
120
-
121
- # Test compilation of arrow library crate with different feature combinations
120
+ - name : Test compilation of arrow library crate with different feature combinations
121
+ run : |
122
122
cargo check -p arrow
123
123
cargo check -p arrow --no-default-features
124
-
125
- # Test compilation of arrow targets with different feature combinations
124
+ - name : Test compilation of arrow targets with different feature combinations
125
+ run : |
126
126
cargo check -p arrow --all-targets
127
127
cargo check -p arrow --no-default-features --all-targets
128
128
cargo check -p arrow --no-default-features --all-targets --features test_utils
129
-
130
- # re- run tests on arrow-flight with all features
129
+ - name : Re-run tests on arrow-flight with all features
130
+ run : |
131
131
cargo test -p arrow-flight --all-features
132
-
133
- # re- run tests on parquet crate with all features
132
+ - name : Re-run tests on parquet crate with all features
133
+ run : |
134
134
cargo test -p parquet --all-features
135
-
136
- # Test compilation of parquet library crate with different feature combinations
135
+ - name : Test compilation of parquet library crate with different feature combinations
136
+ run : |
137
137
cargo check -p parquet
138
138
cargo check -p parquet --no-default-features
139
139
cargo check -p parquet --no-default-features --features arrow
140
-
141
- # Test compilation of parquet targets with different feature combinations
140
+ - name : Test compilation of parquet targets with different feature combinations
141
+ run : |
142
142
cargo check -p parquet --all-targets
143
143
cargo check -p parquet --no-default-features --all-targets
144
144
cargo check -p parquet --no-default-features --features arrow --all-targets
145
-
146
- # Test compilation of parquet_derive macro with different feature combinations
145
+ - name : Test compilation of parquet_derive macro with different feature combinations
146
+ run : |
147
147
cargo check -p parquet_derive
148
148
149
149
# test the --features "simd" of the arrow crate. This requires nightly.
@@ -152,15 +152,17 @@ jobs:
152
152
runs-on : ubuntu-latest
153
153
strategy :
154
154
matrix :
155
- arch : [amd64]
156
- rust : [nightly]
155
+ arch : [ amd64 ]
156
+ rust : [ nightly ]
157
157
container :
158
158
image : ${{ matrix.arch }}/rust
159
159
env :
160
160
# Disable full debug symbol generation to speed up CI build and keep memory down
161
161
# "1" means line tables only, which is useful for panic tracebacks.
162
162
RUSTFLAGS : " -C debuginfo=1"
163
163
ARROW_TEST_DATA : /__w/arrow-rs/arrow-rs/testing/data
164
+ CARGO_HOME : /github/home/.cargo
165
+ CARGO_TARGET_DIR : /github/home/target
164
166
steps :
165
167
- uses : actions/checkout@v2
166
168
with :
@@ -181,14 +183,9 @@ jobs:
181
183
rust-version : ${{ matrix.rust }}
182
184
- name : Run tests
183
185
run : |
184
- export CARGO_HOME="/github/home/.cargo"
185
- export CARGO_TARGET_DIR="/github/home/target"
186
- cd arrow
187
- cargo test --features "simd"
186
+ cargo test -p arrow --features "simd"
188
187
- name : Check compilation with simd features
189
188
run : |
190
- export CARGO_HOME="/github/home/.cargo"
191
- export CARGO_TARGET_DIR="/github/home/target"
192
189
cargo check -p arrow --features simd
193
190
cargo check -p arrow --features simd --all-targets
194
191
@@ -197,8 +194,8 @@ jobs:
197
194
runs-on : ${{ matrix.os }}
198
195
strategy :
199
196
matrix :
200
- os : [windows-latest, macos-latest]
201
- rust : [stable]
197
+ os : [ windows-latest, macos-latest ]
198
+ rust : [ stable ]
202
199
steps :
203
200
- uses : actions/checkout@v2
204
201
with :
@@ -221,12 +218,12 @@ jobs:
221
218
222
219
clippy :
223
220
name : Clippy
224
- needs : [linux-build-lib]
221
+ needs : [ linux-build-lib ]
225
222
runs-on : ubuntu-latest
226
223
strategy :
227
224
matrix :
228
- arch : [amd64]
229
- rust : [stable]
225
+ arch : [ amd64 ]
226
+ rust : [ stable ]
230
227
container :
231
228
image : ${{ matrix.arch }}/rust
232
229
env :
@@ -267,8 +264,8 @@ jobs:
267
264
runs-on : ubuntu-latest
268
265
strategy :
269
266
matrix :
270
- arch : [amd64]
271
- rust : [stable]
267
+ arch : [ amd64 ]
268
+ rust : [ stable ]
272
269
container :
273
270
image : ${{ matrix.arch }}/rust
274
271
env :
@@ -321,8 +318,8 @@ jobs:
321
318
runs-on : ubuntu-latest
322
319
strategy :
323
320
matrix :
324
- arch : [amd64]
325
- rust : [stable]
321
+ arch : [ amd64 ]
322
+ rust : [ stable ]
326
323
steps :
327
324
- uses : actions/checkout@v2
328
325
with :
@@ -366,8 +363,8 @@ jobs:
366
363
runs-on : ubuntu-latest
367
364
strategy :
368
365
matrix :
369
- arch : [amd64]
370
- rust : [nightly]
366
+ arch : [ amd64 ]
367
+ rust : [ nightly ]
371
368
container :
372
369
image : ${{ matrix.arch }}/rust
373
370
env :
@@ -411,8 +408,8 @@ jobs:
411
408
runs-on : ubuntu-latest
412
409
strategy :
413
410
matrix :
414
- arch : [amd64]
415
- rust : [nightly]
411
+ arch : [ amd64 ]
412
+ rust : [ nightly ]
416
413
container :
417
414
image : ${{ matrix.arch }}/rust
418
415
env :
0 commit comments