Bumps wgpu to 23.0.0. #137
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: actions | |
on: [push, pull_request] | |
jobs: | |
compile: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install WASM Toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
target: wasm32-unknown-unknown | |
- name: Install WASM Binding Generator | |
uses: actions-rs/[email protected] | |
with: | |
crate: wasm-bindgen-cli | |
version: 0.2.95 | |
# use-tool-cache: true | |
- name: Compile Native | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --release --examples | |
- name: Compile WASM | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --release --examples --target wasm32-unknown-unknown | |
- name: Generate WASM Binding | |
run: wasm-bindgen --no-typescript --out-dir target/wasm --web target/wasm32-unknown-unknown/release/examples/showcase.wasm | |
- uses: actions/upload-artifact@v4 | |
with: | |
path: | | |
target/wasm/ | |
target/release/examples/ |