Do not attempt to rustup if in CI. This is taken care of by the base
image.
@@ -4,9 +4,12 @@ set -e
echo "*** Initialising WASM build environment"
+if [ -z $CI_PROJECT_NAME ] ; then
rustup update nightly
-rustup target add wasm32-unknown-unknown --toolchain 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 || \
