From 8c718fd488025e39f5f961b9cc98104aca97e5af Mon Sep 17 00:00:00 2001 From: Nikolai Golub Date: Mon, 5 Aug 2024 15:12:25 +0200 Subject: [PATCH] Add check features to most important crates --- .github/workflows/lint.yml | 16 ++++++++++++++++ Makefile | 8 ++++++++ 2 files changed, 24 insertions(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 3aefc21c8389..65f54bb1caea 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -189,3 +189,19 @@ jobs: uses: re-actors/alls-green@release/v1 with: jobs: ${{ toJSON(needs) }} + + features: + name: features + runs-on: ubuntu-latest + timeout-minutes: 30 + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@clippy + - uses: Swatinem/rust-cache@v2 + with: + cache-on-failure: true + - name: cargo install cargo-hack + uses: taiki-e/install-action@cargo-hack + - run: make check-features + env: + RUSTFLAGS: -D warnings \ No newline at end of file diff --git a/Makefile b/Makefile index d42c426671d4..85ecc5968033 100644 --- a/Makefile +++ b/Makefile @@ -470,3 +470,11 @@ pr: make lint && \ make update-book-cli && \ make test + +check-features: + cargo hack check \ + --package reth-primitives-traits \ + --package reth-primitives \ + --package reth-rpc-types \ + --package reth-codecs \ + --feature-powerset