@@ -229,13 +229,29 @@ jobs:
229
229
# run: cargo test
230
230
231
231
web :
232
- name : Web
232
+ name : Web ${{ matrix.rust.description }}
233
233
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
+ }
234
247
env :
235
248
CARGO_BUILD_TARGET : wasm32-unknown-unknown
236
249
steps :
237
250
- 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 }}
239
255
# - name: Install precompiled wasm-bindgen
240
256
# shell: bash
241
257
# run: |
@@ -251,39 +267,39 @@ jobs:
251
267
- uses : Swatinem/rust-cache@v2
252
268
- name : Test (Node)
253
269
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 }}
256
272
- name : Test (Firefox)
257
273
env :
258
274
GECKODRIVER : geckodriver
259
275
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 }}
262
278
- name : Test (Chrome)
263
279
env :
264
280
CHROMEDRIVER : chromedriver
265
281
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 }}
268
284
- name : Test (dedicated worker)
269
285
env :
270
286
GECKODRIVER : geckodriver
271
287
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 }}
274
290
- name : Test (shared worker)
275
291
env :
276
292
GECKODRIVER : geckodriver
277
293
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 }}
280
296
- name : Test (service worker)
281
297
env :
282
298
# Firefox doesn't support module service workers and therefor can't import scripts
283
299
CHROMEDRIVER : chromedriver
284
300
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 }}
287
303
288
304
wasi :
289
305
name : WASI
0 commit comments