update check.sh

This commit is contained in:
Michael Zhang 2018-09-10 23:18:19 -05:00
parent de118c6047
commit 6cb1dd1b6e
No known key found for this signature in database
GPG key ID: A1B65B603268116B

View file

@ -21,13 +21,7 @@ case `uname -s` in
echo "Building static binaries using ekidd/rust-musl-builder" echo "Building static binaries using ekidd/rust-musl-builder"
docker build -f Dockerfile.check -t build-"$1"-image . docker build -f Dockerfile.check -t build-"$1"-image .
docker run -it --name build-"$1" build-"$1"-image docker run -it --name build-"$1" build-"$1"-image
docker cp build-"$1":/home/rust/src/target/x86_64-unknown-linux-musl/release/"$1" "$1"
docker rm build-"$1" docker rm build-"$1"
docker rmi build-"$1"-image docker rmi build-"$1"-image
;; ;;
*)
echo "Building standard release binaries"
cargo build --release
zip -j "$1"-"$2".zip target/release/"$1"
;;
esac esac