chore(example): allow running triangle example on wasm #119
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: validate | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
rustfmt-check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Run cargo fmt | |
run: cargo fmt --all -- --check | |
- name: Run cargo clippy | |
run: cargo clippy --all -- -D warnings | |
macos-check: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Test | |
run: cargo test | |
ubuntu-check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Test | |
run: cargo test | |
windows-check: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Test | |
run: cargo test | |
wasm-check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install wasm-pack | |
uses: taiki-e/install-action@v2 | |
with: | |
tool: wasm-pack | |
- name: Test | |
run: | | |
cd fast3d | |
wasm-pack test --headless --chrome | |