Update github actions #1
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
name: rust format | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
merge_group: | |
jobs: | |
# This is our MSRV. However this is only for documentation | |
# purposes and should be increased if newer features are used. | |
# This should not stop anyone from bumping the MSRV. | |
check-msrv: | |
name: Check MSRV | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: 1.59.0 | |
target: thumbv7em-none-eabihf | |
- run: cargo check --features=stm32f303xc,stm32-usbd,rt,can,ld --lib | |
check-min-deps: | |
name: Check Minimal Dependency Versions | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: stable | |
target: thumbv7em-none-eabihf | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: nightly | |
target: thumbv7em-none-eabihf | |
- run: cargo +nightly update -Z minimal-versions | |
- run: cargo check --features=stm32f303xc,stm32-usbd,rt,can,ld --lib --examples | |