From bcea44163036aaebf4dfb47c556ecc521fde0e8c Mon Sep 17 00:00:00 2001 From: moparisthebest Date: Sat, 25 Sep 2021 00:51:00 -0400 Subject: [PATCH] Test compilation with each feature individually --- .ci/build.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.ci/build.sh b/.ci/build.sh index 9de0110..b966c88 100755 --- a/.ci/build.sh +++ b/.ci/build.sh @@ -32,5 +32,14 @@ strip "target/$TARGET/release/rusty-keys$SUFFIX" || true # if strip fails, it's mkdir -p release mv "target/$TARGET/release/rusty-keys$SUFFIX" "release/rusty-keys-$TARGET$SUFFIX" +if [ "$TARGET" == 'x86_64-unknown-linux-musl' ] +then + # for this arch only, we are going to build with each feature combo to test that the build succeeds, but not archive them + # the default for now is all features, so that's already tested above + cross build --target $TARGET --release --no-default-features + cross build --target $TARGET --release --no-default-features --features epoll_inotify + cross build --target $TARGET --release --no-default-features --features toml_serde +fi + echo 'build success!' exit 0