Test compilation with each feature individually
Some checks are pending
moparisthebest/rusty-keys/pipeline/head Build queued...

This commit is contained in:
Travis Burtrum 2021-09-25 00:51:00 -04:00
parent 17a8f0c995
commit bcea441630

View File

@ -32,5 +32,14 @@ strip "target/$TARGET/release/rusty-keys$SUFFIX" || true # if strip fails, it's
mkdir -p release mkdir -p release
mv "target/$TARGET/release/rusty-keys$SUFFIX" "release/rusty-keys-$TARGET$SUFFIX" 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!' echo 'build success!'
exit 0 exit 0