From 214fa3aab103fb0b27a6053aeae62034f394872e Mon Sep 17 00:00:00 2001 From: Stephan Date: Sun, 11 Jun 2023 13:44:04 +0200 Subject: [PATCH] check library crates --- .github/workflows/ci.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b5a2841..097dcc7 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-libs: + 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 }} \ No newline at end of file