mirror of
https://github.com/rust-vmm/rust-vmm-ci.git
synced 2026-08-05 03:08:31 +00:00
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:
@@ -2,7 +2,7 @@
|
|||||||
"tests": [
|
"tests": [
|
||||||
{
|
{
|
||||||
"test_name": "build-gnu",
|
"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": [
|
"platform": [
|
||||||
"x86_64",
|
"x86_64",
|
||||||
"aarch64",
|
"aarch64",
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"test_name": "build-musl",
|
"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": [
|
"platform": [
|
||||||
"x86_64",
|
"x86_64",
|
||||||
"aarch64"
|
"aarch64"
|
||||||
@@ -39,7 +39,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"test_name": "unittests-musl",
|
"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": [
|
"platform": [
|
||||||
"x86_64",
|
"x86_64",
|
||||||
"aarch64"
|
"aarch64"
|
||||||
@@ -50,7 +50,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"test_name": "unittests-gnu-release",
|
"test_name": "unittests-gnu-release",
|
||||||
"command": "cargo test --release --all-features --workspace",
|
"command": "cargo all-features test --release --workspace",
|
||||||
"platform": [
|
"platform": [
|
||||||
"x86_64",
|
"x86_64",
|
||||||
"aarch64",
|
"aarch64",
|
||||||
@@ -62,7 +62,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"test_name": "unittests-musl-release",
|
"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": [
|
"platform": [
|
||||||
"x86_64",
|
"x86_64",
|
||||||
"aarch64"
|
"aarch64"
|
||||||
|
|||||||
Reference in New Issue
Block a user