Skip to content

Commit 1b17a7e

Browse files
authored
ci: fix wasm32-wasip1 tests (#7788)
1 parent 5b91709 commit 1b17a7e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,7 +1046,7 @@ jobs:
10461046
run: cargo test -p tokio --target ${{ matrix.target }} --features "sync,macros,io-util,rt,time"
10471047
env:
10481048
CARGO_TARGET_WASM32_WASIP1_RUNNER: "wasmtime run --"
1049-
CARGO_TARGET_WASM32_WASIP1_THREADS_RUNNER: "wasmtime run -W bulk-memory=y -W threads=y -S threads=y --"
1049+
CARGO_TARGET_WASM32_WASIP1_THREADS_RUNNER: "wasmtime run -W bulk-memory=y -W threads=y -W shared-memory=y -S threads=y --"
10501050
RUSTFLAGS: --cfg tokio_unstable -Dwarnings -C target-feature=+atomics,+bulk-memory -C link-args=--max-memory=67108864
10511051
# in order to run doctests for unstable features, we must also pass
10521052
# the unstable cfg to RustDoc
@@ -1056,15 +1056,15 @@ jobs:
10561056
run: cargo test -p tokio-util --target ${{ matrix.target }} --features full
10571057
env:
10581058
CARGO_TARGET_WASM32_WASIP1_RUNNER: "wasmtime run --"
1059-
CARGO_TARGET_WASM32_WASIP1_THREADS_RUNNER: "wasmtime run -W bulk-memory=y -W threads=y -S threads=y --"
1059+
CARGO_TARGET_WASM32_WASIP1_THREADS_RUNNER: "wasmtime run -W bulk-memory=y -W threads=y -W shared-memory=y -S threads=y --"
10601060
RUSTFLAGS: --cfg tokio_unstable -Dwarnings -C target-feature=+atomics,+bulk-memory -C link-args=--max-memory=67108864
10611061
RUSTDOCFLAGS: -C link-args=--max-memory=67108864
10621062

10631063
- name: WASI test tokio-stream
10641064
run: cargo test -p tokio-stream --target ${{ matrix.target }} --features time,net,io-util,sync
10651065
env:
10661066
CARGO_TARGET_WASM32_WASIP1_RUNNER: "wasmtime run --"
1067-
CARGO_TARGET_WASM32_WASIP1_THREADS_RUNNER: "wasmtime run -W bulk-memory=y -W threads=y -S threads=y --"
1067+
CARGO_TARGET_WASM32_WASIP1_THREADS_RUNNER: "wasmtime run -W bulk-memory=y -W threads=y -W shared-memory=y -S threads=y --"
10681068
RUSTFLAGS: --cfg tokio_unstable -Dwarnings -C target-feature=+atomics,+bulk-memory -C link-args=--max-memory=67108864
10691069

10701070
- name: test tests-integration --features wasi-rt
@@ -1081,7 +1081,7 @@ jobs:
10811081
if: matrix.target == 'wasm32-wasip1-threads'
10821082
working-directory: tests-integration
10831083
env:
1084-
CARGO_TARGET_WASM32_WASIP1_THREADS_RUNNER: "wasmtime run -W bulk-memory=y -W threads=y -S threads=y --"
1084+
CARGO_TARGET_WASM32_WASIP1_THREADS_RUNNER: "wasmtime run -W bulk-memory=y -W threads=y -W shared-memory=y -S threads=y --"
10851085
RUSTFLAGS: --cfg tokio_unstable -Dwarnings -C target-feature=+atomics,+bulk-memory -C link-args=--max-memory=67108864
10861086

10871087
check-external-types:

0 commit comments

Comments
 (0)