diff --git a/scripts/init.sh b/scripts/init.sh index ff6929d67c3b8..5dde6d42418b5 100755 --- a/scripts/init.sh +++ b/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 || \