diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dbeef1ae5c..d40c2222a3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -149,3 +149,37 @@ jobs: with: command: test args: --all-features + + wasm: + name: WebAssembly + strategy: + matrix: + crate: + - fj + - fj-export + - fj-interop + - fj-kernel + - fj-math + - fj-operations + - fj-proc + - fj-viewer + - fj-window + runs-on: ubuntu-latest + steps: + - name: Check out repository + uses: actions/checkout@v3 + - name: Set up toolchain + uses: oxidecomputer/actions-rs_toolchain@oxide/master + # see https://github.com/actions-rs/toolchain/pull/209 + # uses: actions-rs/toolchain@v1 + with: + override: true + profile: minimal + target: ${{ matrix.target }} + - name: Set up Rust cache + uses: Swatinem/rust-cache@1232abb8968faf344409165de17cbf9e7f340fd8 + - name: Run `cargo build` + uses: actions-rs/cargo@4ff6ec2846f6e7217c1a9b0b503506665f134c4b + with: + command: build + args: --all-features -D warnings -p ${{ matrix.crate }}