From 3b06b61d675c0d8dd2374f22376e90a5faae80b2 Mon Sep 17 00:00:00 2001 From: Abraham Egnor Date: Tue, 21 Jan 2025 10:51:14 -0500 Subject: [PATCH 1/2] fix wasi test --- .evergreen/compile-only.sh | 4 ++++ 1 file changed, 4 insertions(+) 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 From 2cfa6860d2807e0492d152a30bb683887dc07683 Mon Sep 17 00:00:00 2001 From: Abraham Egnor Date: Tue, 21 Jan 2025 12:12:04 -0500 Subject: [PATCH 2/2] pin wasm test to rustc 1.81 --- .evergreen/run-wasm-tests.sh | 3 +++ 1 file changed, 3 insertions(+) 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