Skip to content

Commit 35eb38d

Browse files
committed
Fix CI on rustc 1.50 and below
rustc doesn't allow `--features` with `-p`, so we simply skip the steps that rely on it.
1 parent 49a5fdf commit 35eb38d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ci/ci-tests.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,13 @@ popd
100100

101101
echo -e "\n\nTesting no-std flags in various combinations"
102102
for DIR in lightning lightning-invoice lightning-rapid-gossip-sync; do
103-
cargo test -p $DIR --verbose --color always --no-default-features --features no-std
103+
[ "$RUSTC_MINOR_VERSION" -gt 50 ] && cargo test -p $DIR --verbose --color always --no-default-features --features no-std
104104
# check if there is a conflict between no-std and the default std feature
105-
cargo test -p $DIR --verbose --color always --features no-std
105+
[ "$RUSTC_MINOR_VERSION" -gt 50 ] && cargo test -p $DIR --verbose --color always --features no-std
106106
done
107107
for DIR in lightning lightning-invoice lightning-rapid-gossip-sync; do
108108
# check if there is a conflict between no-std and the c_bindings cfg
109-
RUSTFLAGS="--cfg=c_bindings" cargo test -p $DIR --verbose --color always --no-default-features --features=no-std
109+
[ "$RUSTC_MINOR_VERSION" -gt 50 ] && RUSTFLAGS="--cfg=c_bindings" cargo test -p $DIR --verbose --color always --no-default-features --features=no-std
110110
done
111111
RUSTFLAGS="--cfg=c_bindings" cargo test --verbose --color always
112112

0 commit comments

Comments
 (0)