setup.sh 402 B

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