Skip to content

Commit fba5907

Browse files
committed
Split up CI yaml
1 parent 39c4eea commit fba5907

File tree

1 file changed

+43
-46
lines changed

1 file changed

+43
-46
lines changed

.github/workflows/rust.yml

Lines changed: 43 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ jobs:
3030
runs-on: ubuntu-latest
3131
strategy:
3232
matrix:
33-
arch: [amd64]
34-
rust: [stable]
33+
arch: [ amd64 ]
34+
rust: [ stable ]
3535
container:
3636
image: ${{ matrix.arch }}/rust
3737
env:
@@ -67,12 +67,12 @@ jobs:
6767
# test the crate
6868
linux-test:
6969
name: Test Workspace on AMD64 Rust ${{ matrix.rust }}
70-
needs: [linux-build-lib]
70+
needs: [ linux-build-lib ]
7171
runs-on: ubuntu-latest
7272
strategy:
7373
matrix:
74-
arch: [amd64]
75-
rust: [stable]
74+
arch: [ amd64 ]
75+
rust: [ stable ]
7676
container:
7777
image: ${{ matrix.arch }}/rust
7878
env:
@@ -81,6 +81,8 @@ jobs:
8181
RUSTFLAGS: "-C debuginfo=1"
8282
ARROW_TEST_DATA: /__w/arrow-rs/arrow-rs/testing/data
8383
PARQUET_TEST_DATA: /__w/arrow-rs/arrow-rs/parquet-testing/data
84+
CARGO_HOME: /github/home/.cargo
85+
CARGO_TARGET_DIR: /github/home/target
8486
steps:
8587
- uses: actions/checkout@v2
8688
with:
@@ -103,47 +105,45 @@ jobs:
103105
rust-version: ${{ matrix.rust }}
104106
- name: Run tests
105107
run: |
106-
export CARGO_HOME="/github/home/.cargo"
107-
export CARGO_TARGET_DIR="/github/home/target"
108-
109108
# run tests on all workspace members with default feature list
110109
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: |
113112
cargo test -p arrow --features=force_validate,prettyprint
114-
113+
- name: Run examples
114+
run: |
115115
# Test arrow examples
116116
cargo run --example builders
117117
cargo run --example dynamic_types
118118
cargo run --example read_csv
119119
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: |
122122
cargo check -p arrow
123123
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: |
126126
cargo check -p arrow --all-targets
127127
cargo check -p arrow --no-default-features --all-targets
128128
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: |
131131
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: |
134134
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: |
137137
cargo check -p parquet
138138
cargo check -p parquet --no-default-features
139139
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: |
142142
cargo check -p parquet --all-targets
143143
cargo check -p parquet --no-default-features --all-targets
144144
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: |
147147
cargo check -p parquet_derive
148148
149149
# test the --features "simd" of the arrow crate. This requires nightly.
@@ -152,15 +152,17 @@ jobs:
152152
runs-on: ubuntu-latest
153153
strategy:
154154
matrix:
155-
arch: [amd64]
156-
rust: [nightly]
155+
arch: [ amd64 ]
156+
rust: [ nightly ]
157157
container:
158158
image: ${{ matrix.arch }}/rust
159159
env:
160160
# Disable full debug symbol generation to speed up CI build and keep memory down
161161
# "1" means line tables only, which is useful for panic tracebacks.
162162
RUSTFLAGS: "-C debuginfo=1"
163163
ARROW_TEST_DATA: /__w/arrow-rs/arrow-rs/testing/data
164+
CARGO_HOME: /github/home/.cargo
165+
CARGO_TARGET_DIR: /github/home/target
164166
steps:
165167
- uses: actions/checkout@v2
166168
with:
@@ -181,14 +183,9 @@ jobs:
181183
rust-version: ${{ matrix.rust }}
182184
- name: Run tests
183185
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"
188187
- name: Check compilation with simd features
189188
run: |
190-
export CARGO_HOME="/github/home/.cargo"
191-
export CARGO_TARGET_DIR="/github/home/target"
192189
cargo check -p arrow --features simd
193190
cargo check -p arrow --features simd --all-targets
194191
@@ -197,8 +194,8 @@ jobs:
197194
runs-on: ${{ matrix.os }}
198195
strategy:
199196
matrix:
200-
os: [windows-latest, macos-latest]
201-
rust: [stable]
197+
os: [ windows-latest, macos-latest ]
198+
rust: [ stable ]
202199
steps:
203200
- uses: actions/checkout@v2
204201
with:
@@ -221,12 +218,12 @@ jobs:
221218
222219
clippy:
223220
name: Clippy
224-
needs: [linux-build-lib]
221+
needs: [ linux-build-lib ]
225222
runs-on: ubuntu-latest
226223
strategy:
227224
matrix:
228-
arch: [amd64]
229-
rust: [stable]
225+
arch: [ amd64 ]
226+
rust: [ stable ]
230227
container:
231228
image: ${{ matrix.arch }}/rust
232229
env:
@@ -267,8 +264,8 @@ jobs:
267264
runs-on: ubuntu-latest
268265
strategy:
269266
matrix:
270-
arch: [amd64]
271-
rust: [stable]
267+
arch: [ amd64 ]
268+
rust: [ stable ]
272269
container:
273270
image: ${{ matrix.arch }}/rust
274271
env:
@@ -321,8 +318,8 @@ jobs:
321318
runs-on: ubuntu-latest
322319
strategy:
323320
matrix:
324-
arch: [amd64]
325-
rust: [stable]
321+
arch: [ amd64 ]
322+
rust: [ stable ]
326323
steps:
327324
- uses: actions/checkout@v2
328325
with:
@@ -366,8 +363,8 @@ jobs:
366363
runs-on: ubuntu-latest
367364
strategy:
368365
matrix:
369-
arch: [amd64]
370-
rust: [nightly]
366+
arch: [ amd64 ]
367+
rust: [ nightly ]
371368
container:
372369
image: ${{ matrix.arch }}/rust
373370
env:
@@ -411,8 +408,8 @@ jobs:
411408
runs-on: ubuntu-latest
412409
strategy:
413410
matrix:
414-
arch: [amd64]
415-
rust: [nightly]
411+
arch: [ amd64 ]
412+
rust: [ nightly ]
416413
container:
417414
image: ${{ matrix.arch }}/rust
418415
env:

0 commit comments

Comments
 (0)