1
0
mirror of https://github.com/containers/youki synced 2024-11-24 01:44:17 +01:00
youki/youki_integration_test/build.sh

15 lines
298 B
Bash
Raw Normal View History

2021-07-15 21:55:46 +02:00
#!/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 build --verbose $TGT $1
rm -f youki_integration_test
cp target/$TARGET/$VERSION/youki_integration_test .