Fix stm32g4 examples #47
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
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: | |
- stm32f334 | |
- stm32h742 | |
- stm32h743 | |
#- stm32h745 | |
- stm32h747cm7 | |
- stm32h750 | |
- stm32h753 | |
#- stm32h755 | |
#- stm32h757 | |
- stm32g474 | |
- stm32g484 | |
features: | |
- defmt | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: ${{ matrix.rust }} | |
target: thumbv7em-none-eabihf | |
override: true | |
- name: fmt | |
run: cargo fmt --check | |
- name: Regular build | |
run: cargo check --features ${{ matrix.device }} --features ${{ matrix.features }} | |
- name: Clippy | |
run: cargo clippy --examples --features ${{ matrix.device }} --features ${{ matrix.features }} | |
examples: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
- { family: stm32g4, device: stm32g474 } | |
- { family: stm32g4, device: stm32g484 } | |
#- { family: stm32f3, device: stm32f334 } | |
#- { family: stm32h7, device: stm32h743 } | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
target: thumbv7em-none-eabihf | |
override: true | |
- name: fmt | |
run: cd examples/${{ matrix.family }}; cargo fmt --check | |
- name: Build ${{ matrix.family }} examples | |
run: cd examples/${{ matrix.family }}; cargo check --bins --features ${{ matrix.device }} | |
- name: Clippy | |
run: cd examples/${{ matrix.family }}; cargo clippy --bins --features ${{ matrix.device }} |