mirror of
https://github.com/containers/youki
synced 2024-09-20 02:41:47 +02:00
27 lines
607 B
Bash
Executable File
27 lines
607 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
TARGET=${TARGET-x86_64-unknown-linux-gnu}
|
|
if [ "$TARGET" != "" ]; then
|
|
TGT="--target $TARGET"
|
|
fi
|
|
VERSION=debug
|
|
if [ "$1" == "--release" ]; then
|
|
VERSION=release
|
|
fi
|
|
|
|
|
|
# Runtimetest must be compiled in its dorectory and is
|
|
# not a part of youki workspace. For the reasoning behind this,
|
|
# please check the docs and readme
|
|
|
|
cargo build --verbose $TGT $1
|
|
cd ./runtimetest
|
|
cargo build --verbose $TGT $1
|
|
cd ..
|
|
|
|
cp target/$TARGET/$VERSION/youki .
|
|
cp target/$TARGET/$VERSION/integration_test ./youki_integration_test
|
|
cp runtimetest/target/$TARGET/$VERSION/runtimetest ./runtimetest_tool
|