Test compilation with each feature individually
moparisthebest/rusty-keys/pipeline/head Build queued... Details

master
Travis Burtrum 2021-09-25 00:51:00 -04:00
parent 17a8f0c995
commit bcea441630
1 changed files with 9 additions and 0 deletions

View File

@ -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