Skip to content

Commit

Permalink
Add WebAssembly job to CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Oct 14, 2022
1 parent 983aa07 commit d312f0f
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit d312f0f

Please sign in to comment.