Skip to content

Commit

Permalink
Fix publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
cwfitzgerald committed Nov 5, 2023
1 parent 9501ccc commit dfa7e2f
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,16 @@ jobs:
- name: Install Rust WASM target
run: rustup target add wasm32-unknown-unknown

- name: Install wasm-bindgen-cli
run: cargo +stable install wasm-bindgen-cli --version=0.2.87
- name: Get wasm-bindgen version
run: |
WASM_BINDGEN_VERSION=$(cargo metadata --format-version 1 --all-features | jq '.packages[] | select(.name == "wasm-bindgen") | .version' | tr -d '"')
echo $WASM_BINDGEN_VERSION
echo "WASM_BINDGEN_VERSION=$WASM_BINDGEN_VERSION" >> "$GITHUB_ENV"
- name: Pin wasm-bindgen version
run: cargo update -p wasm-bindgen --precise 0.2.87
- name: Install wasm-bindgen
run: cargo +stable install wasm-bindgen-cli --version=$WASM_BINDGEN_VERSION

- name: Build WebGPU examples
run: cargo build --release --target wasm32-unknown-unknown
Expand Down

0 comments on commit dfa7e2f

Please sign in to comment.