merging fork back to main #190
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: ci | |
| on: [push, pull_request] | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: wasm32-unknown-unknown | |
| components: clippy, rustfmt | |
| - name: Run clippy | |
| run: cargo clippy | |
| - name: Check formatting | |
| run: cargo fmt -- --check | |
| - name: Build | |
| run: cargo build | |
| example_basic: | |
| name: Example | Basic | |
| needs: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: wasm32-unknown-unknown | |
| components: clippy, rustfmt | |
| - name: Install trunk | |
| uses: taiki-e/install-action@v2 | |
| with: | |
| tool: trunk | |
| - name: Build example | |
| run: cd examples/basic && trunk build |