1
0
mirror of https://github.com/containers/youki synced 2024-11-23 09:21:57 +01:00
youki/scripts/build.sh
utam0k 54bb830b4b
Introduce the root Makefile.
Signed-off-by: utam0k <k0ma@utam0k.jp>
2022-03-11 22:14:34 +09:00

18 lines
347 B
Bash
Executable File

#! /bin/sh -eu
ROOT=$(git rev-parse --show-toplevel)
OUTPUT=${1:-$ROOT/bin}
[ ! -d $OUTPUT ] && mkdir -p $OUTPUT
cd ${ROOT}/crates
make release
mv ./youki_bin ${OUTPUT}/youki
cd ${ROOT}/tests/rust-integration-tests
make FLAG=--release all
mv ./runtimetest_bin ${OUTPUT}/runtimetest
mv ./integration_test_bin ${OUTPUT}/integration_test
exit 0