From f0caf6b163ed341a6c7eeea4dd0660633671fb6c Mon Sep 17 00:00:00 2001 From: Hennadii Chernyshchyk Date: Fri, 20 Dec 2024 20:03:02 +0200 Subject: [PATCH] Test combinations on CI --- .github/workflows/main.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6b5757d..8d4cd4e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -55,6 +55,27 @@ jobs: - name: Rustdoc run: cargo rustdoc -- -D warnings + feature-combinations: + name: Feature combinations + runs-on: ubuntu-latest + steps: + - name: Clone repo + uses: actions/checkout@v4 + + - name: Instal stable toolchain + uses: dtolnay/rust-toolchain@stable + + - name: Cache crates + uses: Swatinem/rust-cache@v2 + + - name: Install Cargo Hack + run: cargo install cargo-hack + + - name: Check feature combinations + run: cargo hack check --feature-powerset + env: + RUSTFLAGS: -Aunused -Dwarnings + test: name: Test runs-on: ubuntu-latest