mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-29 01:23:57 +01:00
Properly enable getrandom in nanorand (#8098)
This commit is contained in:
1 parent
17a17f716a
commit
fe86710af7
6 files changed
+21
-2
No files matched your search
@@ -261,6 +261,8 @@ jobs:
|
||||
run: |
|
||||
set -e
|
||||
|
||||
export RUSTFLAGS="$RUSTFLAGS --cfg getrandom_backend=\"wasm_js\""
|
||||
|
||||
# build for WebGPU
|
||||
cargo clippy --target ${{ matrix.target }} ${{ matrix.extra-flags }} --tests --features glsl,spirv,fragile-send-sync-non-atomic-wasm
|
||||
cargo clippy --target ${{ matrix.target }} ${{ matrix.extra-flags }} --tests --features glsl,spirv
|
||||
@@ -487,6 +489,9 @@ jobs:
|
||||
- name: Execute tests
|
||||
run: |
|
||||
cd wgpu
|
||||
|
||||
export RUSTFLAGS="$RUSTFLAGS --cfg getrandom_backend=\"wasm_js\""
|
||||
|
||||
wasm-pack test --headless --chrome --no-default-features --features wgsl,webgl,web --workspace
|
||||
|
||||
gpu-test:
|
||||
|
||||
Reference in new issue
Block a user