File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -65,16 +65,24 @@ jobs:
65
65
- run : cargo test --verbose --package rayon
66
66
- run : cargo test --verbose --package rayon-core
67
67
68
- # wasm won't actually work without threading, but it builds
68
+ # wasm32-unknown-unknown builds, and even has the runtime fallback for
69
+ # unsupported threading, but we don't have an environment to execute in.
70
+ # wasm32-wasi can test the fallback by running in wasmtime.
69
71
wasm :
70
72
name : WebAssembly
71
73
runs-on : ubuntu-latest
74
+ env :
75
+ CARGO_TARGET_WASM32_WASI_RUNNER : /home/runner/.wasmtime/bin/wasmtime
72
76
steps :
73
77
- uses : actions/checkout@v3
74
78
- uses : dtolnay/rust-toolchain@stable
75
79
with :
76
- target : wasm32-unknown-unknown
80
+ targets : wasm32-unknown-unknown,wasm32-wasi
77
81
- run : cargo check --verbose --target wasm32-unknown-unknown
82
+ - run : cargo check --verbose --target wasm32-wasi
83
+ - run : curl https://wasmtime.dev/install.sh -sSf | bash
84
+ - run : cargo test --verbose --target wasm32-wasi --package rayon
85
+ - run : cargo test --verbose --target wasm32-wasi --package rayon-core
78
86
79
87
fmt :
80
88
name : Format
You can’t perform that action at this time.
0 commit comments