diff --git a/.evergreen/compile-only.sh b/.evergreen/compile-only.sh index 41a89ce7..395267e7 100755 --- a/.evergreen/compile-only.sh +++ b/.evergreen/compile-only.sh @@ -6,6 +6,10 @@ set -o errexit rustup update $RUST_VERSION if [ ! -z "$TARGET" ]; then + if [[ "$TARGET" = "wasm32-wasi" && "$RUST_VERSION" = "nightly" ]]; then + # renamed in newer versions of rustc + TARGET="wasm32-wasip1" + fi rustup target add $TARGET --toolchain $RUST_VERSION TARGET="--target=$TARGET" fi diff --git a/.evergreen/run-wasm-tests.sh b/.evergreen/run-wasm-tests.sh index 806c675e..18c835ca 100755 --- a/.evergreen/run-wasm-tests.sh +++ b/.evergreen/run-wasm-tests.sh @@ -4,6 +4,9 @@ set -o errexit . ~/.cargo/env +rustup update 1.81 +rustup default 1.81 + curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh cd $(dirname $0)/../wasm-test