Skip to content

Commit

Permalink
Add check features to most important crates
Browse files Browse the repository at this point in the history
  • Loading branch information
citizen-stig committed Aug 5, 2024
1 parent 390f30a commit 8c718fd
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8c718fd

Please sign in to comment.