1
0
Fork 0
mirror of https://github.com/containers/youki synced 2024-06-09 08:16:19 +02:00
youki/build.sh
2021-05-30 19:21:42 +09:00

16 lines
422 B
Bash
Executable File

#!/bin/bash
TARGET=${TARGET-x86_64-unknown-linux-gnu}
if [ "$TARGET" != "" ]; then
TGT="--target $TARGET"
fi
VERSION=debug
if [[ "$1" == "--release" ]]; then
VERSION=release
fi
cargo when --channel=stable build --verbose $TGT $1 && \
cargo when --channel=beta build --verbose $TGT $1 && \
cargo when --channel=nightly build --verbose --features nightly $TGT $1 && \
rm -f youki
cp target/$TARGET/$VERSION/youki .