Files
pezkuwi-subxt/polkadot/scripts/init.sh
T
TriplEight 1f73847d3d WIP: ci uses new docker image (#236)
* ci uses new docker image

* image renamed to parity/rust-builder:latest

* cleanup
2019-05-02 14:51:27 +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