ci: run the Windows gate's tests with nextest (#1881)

* ci: run the Windows gate's tests with nextest and link with rust-lld

The Windows leg of the Workspace gate takes 55-100 minutes. About half of that is
cargo test running ~370 test binaries one after another, twice (default and all
features), and another 15-17 minutes per feature set is the uncached test build,
where link.exe links every test executable.

- Windows runs the tests with cargo-nextest (parallel across binaries) and the
  doctests with cargo test --doc. The same tests run; .config/nextest.toml puts
  the tests that relied on in-process mutexes (craft-ui GPU, craft-video h264
  fixtures, craft-print) in one-at-a-time groups.
- Windows links with rust-lld via CARGO_TARGET_X86_64_PC_WINDOWS_MSVC_LINKER.

Linux and macOS legs are unchanged.

* ci: keep link.exe on the Windows gate

The first run with rust-lld built the tests no faster than link.exe at the same
runner speed (14.4 min against 15.1 min on a runner 8% slower at clippy), so the
linker change is not worth its risk. nextest stays.
This commit is contained in:
FredApps
2026-11-16 11:45:15 -05:00
committed by GitHub
parent 209a40d66c
commit 692a7fe5c9
2 changed files with 52 additions and 3 deletions
+8 -3
View File
@@ -25,7 +25,8 @@ jobs:
with:
os: '["ubuntu-latest","windows-latest","macos-latest"]'
timeout-minutes: 120
tools: ""
# The Windows leg runs its tests with nextest (.config/nextest.toml).
tools: cargo-nextest@0.9.150
packages: mesa-vulkan-drivers libvulkan1
craft-fonts-ref: b076417b5880bd4154bd22f00695b1d28c6bea83
linux-env: WGPU_BACKEND=vulkan
@@ -58,8 +59,12 @@ jobs:
cargo fmt --check
cargo clippy --workspace --all-targets --locked -- -D warnings
cargo clippy --workspace --all-targets --all-features --locked -- -D warnings
cargo test --workspace --locked
cargo test --workspace --all-features --locked
# The same tests as `cargo test`, run in parallel across test binaries instead of one
# binary at a time; nextest skips doctests, so `cargo test --doc` runs them.
cargo nextest run --workspace --locked --profile ci
cargo test --workspace --doc --locked
cargo nextest run --workspace --all-features --locked --profile ci
cargo test --workspace --doc --all-features --locked
msrv:
name: Rust 1.95