Skip to content

Add fidget-wgpu crate #847

Add fidget-wgpu crate

Add fidget-wgpu crate #847

Workflow file for this run

name: Check wasm build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/rust-cache
with:
cache-key: check-wasm
- name: Install wasm target
run: rustup target add wasm32-unknown-unknown
- name: Check
# `cargo check` doesn't find MIR diagnostics (rust#49292), so we have to
# compile instead. We're using `cargo rustc` instead of `cargo build` to
# pass `-Dwarnings`; we don't want to use `RUSTFLAGS` because that will
# override customization in `.cargo/config.toml`
run: cargo rustc --target=wasm32-unknown-unknown -pfidget --no-default-features --features="rhai" -- -Dwarnings
- name: Clippy
run: cargo clippy --target=wasm32-unknown-unknown -pfidget --no-default-features --features="rhai" -- -Dwarnings