Skip to content

Commit a1ee656

Browse files
committed
Split Rust CI, to improve failure detection
1 parent e116db4 commit a1ee656

1 file changed

Lines changed: 18 additions & 14 deletions

File tree

.github/workflows/rust.yml

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
build:
2222

2323
runs-on: ${{ matrix.os }}
24+
name: Rust ${{ matrix.rust }} on ${{ matrix.os }} (features: ${{ matrix.features.name }})
2425
defaults:
2526
run:
2627
shell: bash
@@ -30,6 +31,21 @@ jobs:
3031
matrix:
3132
os: [windows-latest, macos-14, macos-15, ubuntu-latest]
3233
rust: [stable, nightly]
34+
features:
35+
- name: default
36+
args: ""
37+
- name: debug
38+
args: "--features debug"
39+
- name: check
40+
args: "--features check"
41+
- name: build_cc
42+
args: '--features "build_cc usecxx17"'
43+
- name: native-cpu
44+
args: "--features native-cpu"
45+
- name: local_dynamic_tls
46+
args: "--features local_dynamic_tls"
47+
- name: lto
48+
args: "--features lto"
3349
# Don't abort runners if a single one fails
3450
fail-fast: false
3551
steps:
@@ -45,18 +61,6 @@ jobs:
4561
fi
4662
shell: bash
4763
- name: Build
48-
run: cargo build --verbose
64+
run: cargo build --verbose ${{ matrix.features.args }}
4965
- name: Run tests
50-
run: cargo test --all
51-
- name: Run tests debug
52-
run: cargo test --all --features debug
53-
- name: Run tests check
54-
run: cargo test --all --features check
55-
- name: Run tests build_cc
56-
run: cargo test --all --features "build_cc usecxx17"
57-
- name: Run tests native-cpu
58-
run: cargo test --all --features native-cpu
59-
- name: Run tests local_dynamic_tls
60-
run: cargo test --all --features local_dynamic_tls
61-
- name: Run tests lto
62-
run: cargo test --all --features lto
66+
run: cargo test --all ${{ matrix.features.args }}

0 commit comments

Comments
 (0)