setup.sh 483 B

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