Skip to content

Commit

Permalink
Don't try to build the entire workspace on wasm32.
Browse files Browse the repository at this point in the history
When building for WebAssembly using the WebGPU backend, don't try to
build the entire workspace. wgpu-hal isn't meant to be used in this
case, and since #3254, it complains if no backends have been
explicitly selected.

Instead, pass `--package wgpu` when doing the WebGPU-backend build.
  • Loading branch information
jimblandy committed Feb 7, 2023
1 parent 48d8666 commit 2f028e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
run: cargo install wasm-bindgen-cli --version=0.2.83

- name: Build WebGPU examples
run: cargo build --release --target wasm32-unknown-unknown --examples
run: cargo build --package wgpu --release --target wasm32-unknown-unknown --examples

- name: Generate JS bindings for WebGPU examples
run: |
Expand Down

0 comments on commit 2f028e7

Please sign in to comment.