name: CI
on:
push:
branches:
tags:
pull_request:
branches:
workflow_dispatch:
jobs:
ci:
strategy:
matrix:
rust:
os:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: ${{ matrix.rust }}
components: rustfmt
targets: thumbv7em-none-eabihf
- run: cargo fmt -- --check
- run: cargo test
- run: cargo build --target thumbv7em-none-eabihf