copy scripts

This commit is contained in:
Robert Habermeier
2018-08-15 13:40:49 +02:00
parent f85fcd4fc2
commit 670fc459b2
8 changed files with 389 additions and 126 deletions
+29
View File
@@ -0,0 +1,29 @@
#!/usr/bin/env bash
set -eux
# Install rustup and the specified rust toolchain.
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=$RUST_TOOLCHAIN -y
# Load cargo environment. Specifically, put cargo into PATH.
source ~/.cargo/env
rustc --version
rustup --version
cargo --version
case $TARGET in
"native")
sudo apt-get -y update
sudo apt-get install -y cmake pkg-config libssl-dev
cargo test --all --locked
;;
"wasm")
# Install prerequisites and build all wasm projects
./scripts/init.sh
./scripts/build.sh
./scripts/build-demos.sh
;;
esac