Cicd setup #5
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: Rust-Checks | |
jobs: | |
cargo_check: | |
name: Cargo Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly-2024-09-04 | |
default: true | |
target: thumbv7em-none-eabihf | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: check | |
args: --examples --bins --lib --target thumbv7em-none-eabihf | |
cargo_clippy: | |
name: Clippy Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly-2024-09-04 | |
default: true | |
target: thumbv7em-none-eabihf | |
components: clippy | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: clippy | |
args: --target thumbv7em-none-eabihf | |
cargo_build: | |
name: Cargo Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly-2024-09-04 | |
default: true | |
target: thumbv7em-none-eabihf | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --release --examples --bins --lib --target thumbv7em-none-eabihf | |
cargo_rustfmt: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out Repository | |
uses: actions/checkout@v4 | |
- name: Setup Toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly-2024-09-04 | |
default: true | |
target: thumbv7em-none-eabihf | |
components: rustfmt | |
- name: Check Formatting | |
uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: --check |