2021-12-07 00:31:51 +01:00
|
|
|
name: ci
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
check:
|
|
|
|
name: Check build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
|
|
with:
|
|
|
|
targets: "thumbv7em-none-eabihf"
|
|
|
|
- run: cargo check --target thumbv7em-none-eabihf --release
|
|
|
|
- run: cargo check --target thumbv7em-none-eabihf --examples --release
|
|
|
|
|
|
|
|
test:
|
|
|
|
name: Run Tests
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
|
|
- name: Install nextest
|
|
|
|
uses: taiki-e/install-action@nextest
|
2024-07-19 06:19:28 +02:00
|
|
|
- run: cargo nextest run --features va41630 -p va416xx-hal
|
2021-12-07 00:31:51 +01:00
|
|
|
# I think we can skip those on an embedded crate..
|
|
|
|
# - run: cargo test --doc -p va108xx-hal
|
|
|
|
|
|
|
|
fmt:
|
|
|
|
name: Check formatting
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- 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
|
2024-09-17 18:07:45 +02:00
|
|
|
- run: RUSTDOCFLAGS="--cfg docsrs --generate-link-to-definition -Z unstable-options" cargo +nightly doc -p vorago-peb1
|
|
|
|
- run: RUSTDOCFLAGS="--cfg docsrs --generate-link-to-definition -Z unstable-options" cargo +nightly doc -p va416xx-hal --features va41630
|
|
|
|
- run: RUSTDOCFLAGS="--cfg docsrs --generate-link-to-definition -Z unstable-options" cargo +nightly doc -p va416xx
|
2021-12-07 00:31:51 +01:00
|
|
|
|
|
|
|
clippy:
|
|
|
|
name: Clippy
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
|
|
with:
|
|
|
|
targets: "thumbv7em-none-eabihf"
|
|
|
|
- run: cargo clippy --target thumbv7em-none-eabihf -- -D warnings
|