From 995f606463d0e989b5c840f4b299b5525ed25e5a Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Thu, 19 Sep 2024 15:46:08 +1000 Subject: [PATCH] Do not enable std in feature matrix loop We have a bug that is giving false positives in CI because the `std` feature is always enabled when doing feature matrix loop. Found while hacking on a new `psbt` crate. --- ci/run_task.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ci/run_task.sh b/ci/run_task.sh index 00bab7b..657cc0a 100755 --- a/ci/run_task.sh +++ b/ci/run_task.sh @@ -201,14 +201,14 @@ loop_features() { if (( len > 1 )); then for ((i = 0 ; i < len ; i++ )); do - $cargo build --features="$use ${array[i]}" - $cargo test --features="$use ${array[i]}" + $cargo build --no-default-features --features="$use ${array[i]}" + $cargo test --no-default-features --features="$use ${array[i]}" if (( i < len - 1 )); then for ((j = i + 1 ; j < len ; j++ )); do - $cargo build --features="$use ${array[i]} ${array[j]}" - $cargo test --features="$use ${array[i]} ${array[j]}" + $cargo build --no-default-features --features="$use ${array[i]} ${array[j]}" + $cargo test --no-default-features --features="$use ${array[i]} ${array[j]}" done fi done