Skip to content

Commit

Permalink
Do not attempt to rustup if in CI. This is taken care of by the base (p…
Browse files Browse the repository at this point in the history
  • Loading branch information
ddorgan authored and gguoss committed Sep 3, 2018
1 parent f83b31b commit c1bd127
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 || \
Expand Down

0 comments on commit c1bd127

Please sign in to comment.