Wasm support + release (#23) #64
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: Rust | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| pull_request: | |
| branches: [ "master" ] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Format | |
| run: cargo fmt --check | |
| - name: Clippy common | |
| run: cargo clippy --features std,wasm,embassy,embedded_hal --tests -- -D warnings | |
| - name: Clippy embedded_hal_old | |
| run: cargo clippy --features embedded_hal_old -- -D warnings | |
| - name: Clippy no default | |
| run: cargo clippy --no-default-features -- -D warnings | |
| - name: Install dependencies | |
| run: | | |
| rustup target add thumbv7m-none-eabi | |
| rustup target add wasm32-unknown-unknown | |
| - name: Clippy example stm32 | |
| working-directory: examples/stm32 | |
| run: cargo clippy -- -D warnings | |
| - name: Clippy example stm32-embassy | |
| working-directory: examples/stm32-embassy | |
| run: cargo clippy -- -D warnings | |
| - name: Build example wasm | |
| working-directory: examples/wasm | |
| run: cargo build --target wasm32-unknown-unknown | |
| - name: Tests | |
| run: cargo test tests --features std |