From 77b01f7fec05861117e20b24d9381150fc47742c Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Fri, 1 May 2026 17:18:40 +0800 Subject: [PATCH] ci: use target/ci for all builds Using "cargo build -p" is more reliable than "cd". Otherwise separate mctp/target/ci, pldm/target/ci, etc are created for the individual package builds. Signed-off-by: Matt Johnston --- ci/runtests.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/ci/runtests.sh b/ci/runtests.sh index a046c86..6243edd 100755 --- a/ci/runtests.sh +++ b/ci/runtests.sh @@ -3,7 +3,7 @@ set -v set -e -export CARGO_TARGET_DIR=target/ci +export CARGO_TARGET_DIR="$PWD/target/ci" rustup target add thumbv7em-none-eabihf rustup component add rustfmt clippy @@ -27,15 +27,13 @@ cargo test NOSTD_CRATES="mctp pldm pldm-fw pldm-platform pldm-file" for c in $NOSTD_CRATES; do ( - cd "$c" - cargo build --target thumbv7em-none-eabihf --no-default-features + cargo build -p $c --target thumbv7em-none-eabihf --no-default-features ) done ALLOC_CRATES="pldm pldm-platform pldm-file" for c in $ALLOC_CRATES; do ( - cd "$c" - cargo build --target thumbv7em-none-eabihf --no-default-features --features alloc + cargo build -p $c --target thumbv7em-none-eabihf --no-default-features --features alloc ) done