diff --git a/substrate/scripts/init.sh b/substrate/scripts/init.sh index ff6929d67c..5dde6d4241 100755 --- a/substrate/scripts/init.sh +++ b/substrate/scripts/init.sh @@ -4,9 +4,12 @@ set -e echo "*** Initialising WASM build environment" -rustup update nightly +if [ -z $CI_PROJECT_NAME ] ; then + rustup update nightly + rustup update stable +fi + rustup target add wasm32-unknown-unknown --toolchain nightly -rustup update stable # Install wasm-gc. It's useful for stripping slimming down wasm binaries. command -v wasm-gc || \