USB peripheral support #315
Workflow file for this run
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
on: | |
pull_request: | |
name: Continuous integration | |
# Make sure CI fails on all warnings, including Clippy lints | |
env: | |
RUSTFLAGS: "-Dwarnings" | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust: | |
- stable | |
device: | |
- stm32g431 | |
- stm32g441 | |
- stm32g471 | |
- stm32g473 | |
- stm32g474 | |
- stm32g483 | |
- stm32g484 | |
#- stm32g491 # Does not seem ready yet | |
#- stm32g4a1 # Does not seem ready yet | |
features: | |
- log-rtt,defmt | |
# TODO: -log-rtt # log-rtt without defmt, more combos? | |
- log-itm | |
- log-semihost | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: ${{ matrix.rust }} | |
target: thumbv7em-none-eabihf | |
override: true | |
- name: Regular build | |
run: cargo check --features ${{ matrix.device }} --features ${{ matrix.features }} | |
- name: Build examples | |
run: cargo check --examples --features ${{ matrix.device }} --features ${{ matrix.features }} | |
- name: Clippy | |
run: cargo clippy --examples --features ${{ matrix.device }} --features ${{ matrix.features }} |