@@ -229,19 +229,24 @@ jobs:
229
229
# run: cargo test
230
230
231
231
web :
232
- name : Web ${{ matrix.rust.description }}
232
+ name : ${{ matrix.rust.description }}
233
233
runs-on : ubuntu-24.04
234
234
strategy :
235
235
fail-fast : false
236
236
matrix :
237
237
rust :
238
- - { version: stable }
239
238
- {
240
- description : with Atomics,
239
+ description : Web,
240
+ version : stable,
241
+ flags : -Dwarnings --cfg getrandom_backend="wasm_js",
242
+ args : --features=std,
243
+ }
244
+ - {
245
+ description : Web with Atomics,
241
246
version : nightly,
242
247
components : rust-src,
243
- flags : ' -Ctarget-feature=+atomics,+bulk-memory' ,
244
- args : ' -Zbuild-std=panic_abort,std' ,
248
+ flags : ' -Dwarnings --cfg getrandom_backend="wasm_js" - Ctarget-feature=+atomics,+bulk-memory' ,
249
+ args : ' --features=std - Zbuild-std=panic_abort,std' ,
245
250
}
246
251
steps :
247
252
- uses : actions/checkout@v4
@@ -259,34 +264,34 @@ jobs:
259
264
- uses : Swatinem/rust-cache@v2
260
265
- name : Test (Node)
261
266
env :
262
- RUSTFLAGS : -Dwarnings --cfg getrandom_backend="wasm_js" ${{ matrix.rust.flags }}
263
- run : wasm-pack test --node -- --features std ${{ matrix.rust.args }}
267
+ RUSTFLAGS : ${{ matrix.rust.flags }}
268
+ run : wasm-pack test --node -- ${{ matrix.rust.args }}
264
269
- name : Test (Firefox)
265
270
env :
266
271
WASM_BINDGEN_USE_BROWSER : 1
267
- RUSTFLAGS : -Dwarnings --cfg getrandom_backend="wasm_js" ${{ matrix.rust.flags }}
268
- run : wasm-pack test --headless --firefox -- --features std ${{ matrix.rust.args }}
272
+ RUSTFLAGS : ${{ matrix.rust.flags }}
273
+ run : wasm-pack test --headless --firefox -- ${{ matrix.rust.args }}
269
274
- name : Test (Chrome)
270
275
env :
271
276
WASM_BINDGEN_USE_BROWSER : 1
272
- RUSTFLAGS : -Dwarnings --cfg getrandom_backend="wasm_js" ${{ matrix.rust.flags }}
273
- run : wasm-pack test --headless --chrome -- --features std ${{ matrix.rust.args }}
277
+ RUSTFLAGS : ${{ matrix.rust.flags }}
278
+ run : wasm-pack test --headless --chrome -- ${{ matrix.rust.args }}
274
279
- name : Test (dedicated worker)
275
280
env :
276
281
WASM_BINDGEN_USE_DEDICATED_WORKER : 1
277
- RUSTFLAGS : -Dwarnings --cfg getrandom_backend="wasm_js" ${{ matrix.rust.flags }}
278
- run : wasm-pack test --headless --firefox -- --features std ${{ matrix.rust.args }}
282
+ RUSTFLAGS : ${{ matrix.rust.flags }}
283
+ run : wasm-pack test --headless --firefox -- ${{ matrix.rust.args }}
279
284
- name : Test (shared worker)
280
285
env :
281
286
WASM_BINDGEN_USE_SHARED_WORKER : 1
282
- RUSTFLAGS : -Dwarnings --cfg getrandom_backend="wasm_js" ${{ matrix.rust.flags }}
283
- run : wasm-pack test --headless --firefox -- --features std ${{ matrix.rust.args }}
287
+ RUSTFLAGS : ${{ matrix.rust.flags }}
288
+ run : wasm-pack test --headless --firefox -- ${{ matrix.rust.args }}
284
289
- name : Test (service worker)
285
290
env :
286
291
WASM_BINDGEN_USE_SERVICE_WORKER : 1
287
- RUSTFLAGS : -Dwarnings --cfg getrandom_backend="wasm_js" ${{ matrix.rust.flags }}
292
+ RUSTFLAGS : ${{ matrix.rust.flags }}
288
293
# Firefox doesn't support module service workers and therefor can't import scripts
289
- run : wasm-pack test --headless --chrome -- --features std ${{ matrix.rust.args }}
294
+ run : wasm-pack test --headless --chrome -- ${{ matrix.rust.args }}
290
295
291
296
wasi :
292
297
name : WASI
0 commit comments