From 2f028e78d089b72d84ba21c00a46c0190bdfc9ec Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Tue, 7 Feb 2023 13:27:00 -0800 Subject: [PATCH] Don't try to build the entire workspace on wasm32. 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. --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 68bd2db25f..08546cff10 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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: |