From 8aa3d57a5066d72eb1044fe37a4ee93b30580cc1 Mon Sep 17 00:00:00 2001 From: Rahix Date: Thu, 19 Dec 2024 22:22:24 +0100 Subject: [PATCH] ci: Add check run with all feature enabled Add another CI job which runs `cargo check` with all profirust crate features enabled. Additionally, forbid all warnings during this check run so CI notifies us of code yielding warnings early. --- .github/workflows/ci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ad1ef3c..63586bb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,6 +16,15 @@ jobs: - uses: actions-rust-lang/setup-rust-toolchain@v1 - run: cargo test -p gsd-parser + check-profirust: + name: Check profirust sources + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions-rust-lang/setup-rust-toolchain@v1 + - run: sudo apt-get install -y libudev-dev + - run: RUSTFLAGS=-Dwarnings cargo check -p profirust --all-features --examples + test-profirust: name: Run profirust testsuite runs-on: ubuntu-latest