Skip to content

Commit d15e102

Browse files
committed
Fixes hardcoded path for WASM runner
1 parent e960b8c commit d15e102

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

ci/docker/wasm32-wasip1/Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,3 @@ ENV VERSION=v38.0.3
1111

1212
RUN curl -L https://github.com/bytecodealliance/wasmtime/releases/download/${VERSION}/wasmtime-${VERSION}-x86_64-linux.tar.xz | tar xJf -
1313
ENV PATH=$PATH:/wasmtime-${VERSION}-x86_64-linux
14-
15-
ENV CARGO_TARGET_WASM32_WASIP1_RUNNER="wasmtime -Wexceptions --dir /checkout/target/wasm32-wasip1/release/deps::."

ci/run.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ cargo_test() {
7171
# harness isn't trying to capture output, otherwise we won't get any useful
7272
# output.
7373
wasm32*)
74+
if [ "$PROFILE" = "release" ]; then
75+
dir="release"
76+
else
77+
dir="debug"
78+
fi
79+
export CARGO_TARGET_WASM32_WASIP1_RUNNER="wasmtime -Wexceptions --dir /checkout/target/wasm32-wasip1/$dir/deps::."
7480
cmd="$cmd --nocapture"
7581
;;
7682
esac

0 commit comments

Comments
 (0)