From 6f7d3656a84b771f381ddf0b120062dcbacb4c04 Mon Sep 17 00:00:00 2001 From: Patrick Roy Date: Mon, 29 Sep 2025 19:47:46 +0100 Subject: [PATCH] ci: convert build and test steps to use cargo-all-features Ensure that every permutation of feature flags is both build-tested, and has their unit-tests ran. The unit-testing part can be reverted to `--all-features` at some point, once we have made sure that all our cargo features are actually additive. Signed-off-by: Patrick Roy --- .buildkite/test_description.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.buildkite/test_description.json b/.buildkite/test_description.json index cb176cc..b33f50b 100644 --- a/.buildkite/test_description.json +++ b/.buildkite/test_description.json @@ -2,7 +2,7 @@ "tests": [ { "test_name": "build-gnu", - "command": "RUSTFLAGS=\"-D warnings\" cargo build --release --workspace --all-targets", + "command": "RUSTFLAGS=\"-D warnings\" cargo all-features build --release --workspace --all-targets", "platform": [ "x86_64", "aarch64", @@ -11,7 +11,7 @@ }, { "test_name": "build-musl", - "command": "RUSTFLAGS=\"-D warnings\" cargo build --release --target {target_platform}-unknown-linux-musl --workspace --all-targets", + "command": "RUSTFLAGS=\"-D warnings\" cargo all-features build --release --target {target_platform}-unknown-linux-musl --workspace --all-targets", "platform": [ "x86_64", "aarch64" @@ -39,7 +39,7 @@ }, { "test_name": "unittests-musl", - "command": "cargo test --all-features --workspace --target {target_platform}-unknown-linux-musl", + "command": "cargo all-features test --workspace --target {target_platform}-unknown-linux-musl", "platform": [ "x86_64", "aarch64" @@ -50,7 +50,7 @@ }, { "test_name": "unittests-gnu-release", - "command": "cargo test --release --all-features --workspace", + "command": "cargo all-features test --release --workspace", "platform": [ "x86_64", "aarch64", @@ -62,7 +62,7 @@ }, { "test_name": "unittests-musl-release", - "command": "cargo test --release --all-features --workspace --target {target_platform}-unknown-linux-musl", + "command": "cargo all-features test --release --workspace --target {target_platform}-unknown-linux-musl", "platform": [ "x86_64", "aarch64"