From 76cb3e8f43cc9a88d4ec0b4e664b6aec1d521389 Mon Sep 17 00:00:00 2001 From: bishopcheckmate Date: Sun, 7 Jan 2024 15:34:16 +0100 Subject: [PATCH] chore(ci): check each feature of codetable with cargo hack --- .github/workflows/build.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9282e386..b6b93281 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -131,6 +131,28 @@ jobs: run: cargo deny check shell: bash + # todo: run on all crates + cargo-hack-codetable: + name: Cargo Hack - codetable + runs-on: ubuntu-latest + steps: + - name: Checkout Sources + uses: actions/checkout@v4 + + - name: Install Rust Toolchain + uses: dtolnay/rust-toolchain@stable + + - name: Install cargo-hack + uses: taiki-e/install-action@v2 + with: + tool: cargo-hack + + - name: Cargo Hack - Check each feature + run: cargo hack check -p multihash-codetable --each-feature + shell: bash + env: + RUSTFLAGS: -D warnings + semver-checks: runs-on: ubuntu-latest steps: