Skip to content

Commit 1806579

Browse files
committed
ci: Build crates individually
Missing features such as mctp/std in mctp-linux weren't caught, since building all crates together uses features from the entire set. Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>
1 parent a70f343 commit 1806579

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

ci/runtests.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,21 @@ declare -a FEATURES=(
5959
"$FEATURES_ASYNC"
6060
)
6161

62-
# mctp-estack, sync an async
62+
# mctp-estack, sync and async
6363
(
6464
cd mctp-estack
6565
for feature in "${FEATURES[@]}"; do
6666
cargo test --features="$feature"
6767
done;
6868
)
6969

70+
# Linux programs and examples
71+
# Tested individually to ensure each defines necessary features itself
72+
LINUX_PROGRAMS="mctp-linux pldm-platform-util pldm-fw-cli mctp-standalone pldm-file pldm-platform"
73+
for c in $LINUX_PROGRAMS; do
74+
cargo check -p $c --all-targets
75+
done
76+
7077
# run cargo doc tests
7178
for feature in "${FEATURES[@]}"; do
7279
cargo doc --features="$feature"

0 commit comments

Comments
 (0)