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 <roypat@amazon.co.uk>
This commit is contained in:
Patrick Roy
2025-09-29 19:47:46 +01:00
committed by Patrick Roy
parent d82716692f
commit 6f7d3656a8

View File

@@ -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"