Files
pezkuwi-subxt/substrate/node-template/scripts/init.sh
T
Xiliang Chen c4cbfb355c Move scripts to scripts folder and update readme (#2331)
* Move scripts to scripts folder and update readme

* Update node-template/README.md

Co-Authored-By: xlc <xlchen1291@gmail.com>

* Update node-template/README.md

Co-Authored-By: xlc <xlchen1291@gmail.com>

* Update node-template/README.md

Co-Authored-By: xlc <xlchen1291@gmail.com>

* Update node-template/README.md

Co-Authored-By: xlc <xlchen1291@gmail.com>

* Update node-template/README.md

Co-Authored-By: xlc <xlchen1291@gmail.com>

* Update node-template/README.md

Co-Authored-By: xlc <xlchen1291@gmail.com>

* remove release flag
2019-04-23 08:50:31 +02:00

17 lines
402 B
Bash
Executable File

#!/usr/bin/env bash
set -e
echo "*** Initializing WASM build environment"
if [ -z $CI_PROJECT_NAME ] ; then
rustup update nightly
rustup update stable
fi
rustup target add wasm32-unknown-unknown --toolchain nightly
# Install wasm-gc. It's useful for stripping slimming down wasm binaries.
command -v wasm-gc || \
cargo +nightly install --git https://github.com/alexcrichton/wasm-gc --force