From 6b7c23606b8a5db40e836dc495ac3998f826206b Mon Sep 17 00:00:00 2001 From: Stephan Date: Sun, 11 Jun 2023 14:06:31 +0200 Subject: [PATCH] Add checks of library crates to workflows (#11) --- .github/workflows/ci.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b5a2841..d1e5c25 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,3 +24,24 @@ jobs: working-directory: ./examples/${{ matrix.example }} - run: cargo clippy --no-deps working-directory: ./examples/${{ matrix.example }} + + ci-crates: + runs-on: ubuntu-latest + strategy: + matrix: + crate: [pic32-hal, mips-rt] + include: + - crate: pic32-hal + features: "pic32mx2xxfxxxb, usb-device" + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: nightly + override: true + components: rust-src, clippy + - run: cargo check --features "${{ matrix.features }}" + working-directory: ./${{ matrix.crate }} + - run: cargo clippy --no-deps --features "${{ matrix.features }}" + working-directory: ./${{ matrix.crate }}