16
16
test :
17
17
name : Test
18
18
strategy :
19
+ fail-fast : false
19
20
matrix :
20
21
os : [ ubuntu-24.04, windows-2022, macOS-latest ]
21
22
runs-on : ${{ matrix.os }}
41
42
# figure out native target triple while we're at it
42
43
- name : install rust-toolchain
43
44
run : echo "TARGET=$(rustc --print host-tuple)" >> "$GITHUB_ENV"
45
+ - name : install nextest
46
+ uses : taiki-e/install-action@nextest
44
47
# Fetch dependencies in a separate step to clearly show how long each part
45
48
# of the testing takes
46
49
- name : cargo fetch --locked
@@ -49,13 +52,13 @@ jobs:
49
52
# Core crates
50
53
# Compiled in --release because cargo compiletest would otherwise compile in release again.
51
54
- name : rustc_codegen_spirv build
52
- run : cargo test -p rustc_codegen_spirv --release --no-default-features --features "use-installed-tools" --no-run
55
+ run : cargo nextest run -p rustc_codegen_spirv --release --no-default-features --features "use-installed-tools" --no-run
53
56
54
57
- name : rustc_codegen_spirv test
55
- run : cargo test -p rustc_codegen_spirv --release --no-default-features --features "use-installed-tools"
58
+ run : cargo nextest run -p rustc_codegen_spirv --release --no-default-features --features "use-installed-tools"
56
59
57
60
- name : workspace test (excluding examples & difftest)
58
- run : cargo test --release --workspace --exclude "example-runner-*" --exclude "difftest*" --no-default-features --features "use-installed-tools"
61
+ run : cargo nextest run --release --workspace --exclude "example-runner-*" --exclude "difftest*" --no-default-features --features "use-installed-tools"
59
62
60
63
# Examples
61
64
- name : cargo check examples
@@ -129,6 +132,7 @@ jobs:
129
132
compiletest :
130
133
name : Compiletest
131
134
strategy :
135
+ fail-fast : false
132
136
matrix :
133
137
os : [ ubuntu-24.04, windows-2022, macOS-latest ]
134
138
runs-on : ${{ matrix.os }}
@@ -154,6 +158,7 @@ jobs:
154
158
difftest :
155
159
name : Difftest
156
160
strategy :
161
+ fail-fast : false
157
162
matrix :
158
163
os : [ ubuntu-24.04, windows-2022, macOS-latest ]
159
164
runs-on : ${{ matrix.os }}
@@ -181,14 +186,18 @@ jobs:
181
186
sudo apt install -y xvfb libgl1-mesa-dri libxcb-xfixes0-dev mesa-vulkan-drivers
182
187
- name : install rust-toolchain
183
188
run : echo "TARGET=$(rustc --print host-tuple)" >> "$GITHUB_ENV"
189
+ - name : install nextest
190
+ uses : taiki-e/install-action@nextest
184
191
- name : cargo fetch --locked
185
192
run : cargo fetch --locked --target $TARGET
186
193
- name : cargo fetch --locked difftests
187
194
run : cargo fetch --locked --manifest-path=tests/difftests/tests/Cargo.toml --target $TARGET
188
- - name : test difftest
189
- run : cargo test -p "difftest*" --release --no-default-features --features "use-installed-tools"
195
+ - name : test difftest-runner
196
+ run : cargo nextest run -P difftest-runner -p difftest-runner -p difftest-types --release --no-default-features --features "use-installed-tools"
197
+ - name : build difftests (without shaders)
198
+ run : cargo build --manifest-path ./tests/difftests/tests/Cargo.toml --workspace --release --no-default-features --features "use-installed-tools"
190
199
- name : difftests
191
- run : cargo run -p difftests --release --no-default-features --features "use-installed-tools"
200
+ run : cargo nextest run -P difftests -p difftests --release --no-default-features --features "use-installed-tools"
192
201
193
202
# This allows us to have a single job we can branch protect on, rather than needing
194
203
# to update the branch protection rules when the test matrix changes
0 commit comments