Support wasm #4
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
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
name: test | |
jobs: | |
test: | |
name: Run tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set default toolchain | |
run: rustup default nightly | |
- name: Set profile | |
run: rustup set profile minimal | |
- name: Add wasm target | |
run: rustup target add wasm32-unknown-unknown | |
- name: Install wasm-pack | |
run: cargo install wasm-pack | |
- name: Run cargo test | |
run: make cargo-test | |
- name: Run wasm-pack test | |
run: make wasm-test |