2025-02-14 16:39:28 +01:00
|
|
|
name: ci
|
|
|
|
on: [push, pull_request]
|
2021-12-07 00:31:51 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
check:
|
2025-02-14 16:39:28 +01:00
|
|
|
name: Check build
|
2021-12-07 00:31:51 +01:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2025-02-14 16:39:28 +01:00
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: dtolnay/rust-toolchain@stable
|
2021-12-07 00:31:51 +01:00
|
|
|
with:
|
2025-02-14 16:39:28 +01:00
|
|
|
targets: "thumbv7em-none-eabihf"
|
|
|
|
- run: cargo check --target thumbv7em-none-eabihf
|
|
|
|
- run: cargo check --target thumbv7em-none-eabihf --examples
|
|
|
|
- run: cargo check -p va416xx --target thumbv7em-none-eabihf --all-features
|
|
|
|
- run: cargo check -p va416xx-hal --target thumbv7em-none-eabihf --features "defmt"
|
2021-12-07 00:31:51 +01:00
|
|
|
|
|
|
|
fmt:
|
2025-02-14 16:39:28 +01:00
|
|
|
name: Check formatting
|
2021-12-07 00:31:51 +01:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2025-02-14 16:39:28 +01:00
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
|
|
- run: cargo fmt --all -- --check
|
|
|
|
|
|
|
|
docs:
|
|
|
|
name: Check Documentation Build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: dtolnay/rust-toolchain@nightly
|
|
|
|
- run: RUSTDOCFLAGS="--cfg docsrs --generate-link-to-definition -Z unstable-options" cargo +nightly doc -p va416xx --all-features
|
|
|
|
- run: RUSTDOCFLAGS="--cfg docsrs --generate-link-to-definition -Z unstable-options" cargo +nightly doc -p va416xx-hal --features "defmt va41630"
|
|
|
|
- run: RUSTDOCFLAGS="--cfg docsrs --generate-link-to-definition -Z unstable-options" cargo +nightly doc -p vorago-peb1
|
2021-12-07 00:31:51 +01:00
|
|
|
|
|
|
|
clippy:
|
|
|
|
name: Clippy
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2025-02-14 16:39:28 +01:00
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: dtolnay/rust-toolchain@stable
|
2021-12-07 00:31:51 +01:00
|
|
|
with:
|
2025-02-14 16:39:28 +01:00
|
|
|
targets: "thumbv7em-none-eabihf"
|
|
|
|
- run: cargo clippy --target thumbv7em-none-eabihf -- -D warnings
|