v0.2.0 #3
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 | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
target: thumbv7em-none-eabihf | |
- name: Build std | |
run: cargo build --example raspberry --features="std" | |
- name: Build no_std | |
run: cargo build --example nucleo-f401re --target thumbv7em-none-eabihf | |
- name: Clippy std | |
run: cargo clippy --example raspberry --features="std" -- -Dwarnings -Wclippy::pedantic | |
- name: Clippy no_std | |
run: cargo clippy --example nucleo-f401re --target thumbv7em-none-eabihf -- -Dwarnings -Wclippy::pedantic | |
- name: Format | |
run: cargo fmt --check |