documentation fixes #168
This file contains hidden or 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: Wasm | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install latest stable Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Add wasm targets | |
| run: rustup target add wasm32-unknown-unknown wasm32-wasi | |
| - name: Setup cache | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Build wasm32-unknown-unknown | |
| run: cargo build --features=all-pure --target wasm32-unknown-unknown | |
| - name: Build wasm32-wasi | |
| run: cargo build --features=all-pure --target wasm32-wasi |