Fix publish script

This commit is contained in:
Connor Fitzgerald 2023-11-04 22:11:34 -04:00
parent 9501ccc6b0
commit dfa7e2f8fb
No known key found for this signature in database
GPG Key ID: 7D3FA445BAD3008D

View File

@ -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 '"')
- name: Pin wasm-bindgen version
run: cargo update -p wasm-bindgen --precise 0.2.87
echo $WASM_BINDGEN_VERSION
echo "WASM_BINDGEN_VERSION=$WASM_BINDGEN_VERSION" >> "$GITHUB_ENV"
- 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