File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -11,5 +11,3 @@ ENV VERSION=v38.0.3
1111
1212RUN curl -L https://github.com/bytecodealliance/wasmtime/releases/download/${VERSION}/wasmtime-${VERSION}-x86_64-linux.tar.xz | tar xJf -
1313ENV PATH=$PATH:/wasmtime-${VERSION}-x86_64-linux
14-
15- ENV CARGO_TARGET_WASM32_WASIP1_RUNNER="wasmtime -Wexceptions --dir /checkout/target/wasm32-wasip1/release/deps::."
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments