@@ -229,13 +229,29 @@ jobs:
229229 # run: cargo test
230230
231231 web :
232- name : Web
232+ name : Web ${{ matrix.rust.description }}
233233 runs-on : ubuntu-24.04
234+ strategy :
235+ fail-fast : false
236+ matrix :
237+ rust :
238+ - { version: stable, atomics: false }
239+ - {
240+ description : with Atomics,
241+ atomics : true,
242+ version : nightly,
243+ components : rust-src,
244+ flags : ' -Ctarget-feature=+atomics,+bulk-memory' ,
245+ args : ' -Zbuild-std=panic_abort,std' ,
246+ }
234247 env :
235248 CARGO_BUILD_TARGET : wasm32-unknown-unknown
236249 steps :
237250 - uses : actions/checkout@v4
238- - uses : dtolnay/rust-toolchain@stable
251+ - uses : dtolnay/rust-toolchain@master
252+ with :
253+ toolchain : ${{ matrix.rust.version }}
254+ components : ${{ matrix.rust.components }}
239255 # - name: Install precompiled wasm-bindgen
240256 # shell: bash
241257 # run: |
@@ -251,39 +267,39 @@ jobs:
251267 - uses : Swatinem/rust-cache@v2
252268 - name : Test (Node)
253269 env :
254- RUSTFLAGS : -Dwarnings --cfg getrandom_backend="wasm_js"
255- run : cargo test --features std
270+ RUSTFLAGS : -Dwarnings --cfg getrandom_backend="wasm_js" ${{ matrix.rust.flags }}
271+ run : cargo test --features std ${{ matrix.rust.args }}
256272 - name : Test (Firefox)
257273 env :
258274 GECKODRIVER : geckodriver
259275 WASM_BINDGEN_USE_BROWSER : 1
260- RUSTFLAGS : -Dwarnings --cfg getrandom_backend="wasm_js"
261- run : cargo test --features std
276+ RUSTFLAGS : -Dwarnings --cfg getrandom_backend="wasm_js" ${{ matrix.rust.flags }}
277+ run : cargo test --features std ${{ matrix.rust.args }}
262278 - name : Test (Chrome)
263279 env :
264280 CHROMEDRIVER : chromedriver
265281 WASM_BINDGEN_USE_BROWSER : 1
266- RUSTFLAGS : -Dwarnings --cfg getrandom_backend="wasm_js"
267- run : cargo test --features std
282+ RUSTFLAGS : -Dwarnings --cfg getrandom_backend="wasm_js" ${{ matrix.rust.flags }}
283+ run : cargo test --features std ${{ matrix.rust.args }}
268284 - name : Test (dedicated worker)
269285 env :
270286 GECKODRIVER : geckodriver
271287 WASM_BINDGEN_USE_DEDICATED_WORKER : 1
272- RUSTFLAGS : -Dwarnings --cfg getrandom_backend="wasm_js"
273- run : cargo test --features std
288+ RUSTFLAGS : -Dwarnings --cfg getrandom_backend="wasm_js" ${{ matrix.rust.flags }}
289+ run : cargo test --features std ${{ matrix.rust.args }}
274290 - name : Test (shared worker)
275291 env :
276292 GECKODRIVER : geckodriver
277293 WASM_BINDGEN_USE_SHARED_WORKER : 1
278- RUSTFLAGS : -Dwarnings --cfg getrandom_backend="wasm_js"
279- run : cargo test --features std
294+ RUSTFLAGS : -Dwarnings --cfg getrandom_backend="wasm_js" ${{ matrix.rust.flags }}
295+ run : cargo test --features std ${{ matrix.rust.args }}
280296 - name : Test (service worker)
281297 env :
282298 # Firefox doesn't support module service workers and therefor can't import scripts
283299 CHROMEDRIVER : chromedriver
284300 WASM_BINDGEN_USE_SERVICE_WORKER : 1
285- RUSTFLAGS : -Dwarnings --cfg getrandom_backend="wasm_js"
286- run : cargo test --features std
301+ RUSTFLAGS : -Dwarnings --cfg getrandom_backend="wasm_js" ${{ matrix.rust.flags }}
302+ run : cargo test --features std ${{ matrix.rust.args }}
287303
288304 wasi :
289305 name : WASI
0 commit comments