nearly done with tests #286
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
# https://doc.rust-lang.org/cargo/guide/continuous-integration.html | |
name: Cargo Build & Test | |
on: push | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build_and_test: | |
name: Cargo Build & Test | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
toolchain: | |
- stable | |
- beta | |
- nightly | |
steps: | |
- uses: actions/checkout@v4 | |
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} | |
- uses: Swatinem/rust-cache@v2 | |
- run: cargo build --verbose | |
- run: cargo test --verbose | |
build_boards: | |
name: Cargo Build (boards) | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
board: | |
- stm32l476rg | |
- stm32h743zi | |
- stm32f767zi | |
steps: | |
- uses: actions/checkout@v4 | |
- run: rustup target add thumbv7em-none-eabihf | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
key: ${{ matrix.board }} | |
- run: cargo build --verbose | |
working-directory: boards/${{ matrix.board }} |