mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-21 22:33:49 +00:00
Fix publish script
This commit is contained in:
parent
9501ccc6b0
commit
dfa7e2f8fb
13
.github/workflows/publish.yml
vendored
13
.github/workflows/publish.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user