Skip to content
This repository has been archived by the owner on Nov 5, 2023. It is now read-only.

Commit

Permalink
CI fix
Browse files Browse the repository at this point in the history
Add bin matrix
  • Loading branch information
clabby committed Nov 4, 2023
1 parent 3f9b4e9 commit 7b8b33c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ jobs:
name: clippy
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
matrix:
include:
- binary: "reth"
network: "ethereum"
- binary: "op-reth"
network: "optimism"
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@clippy
Expand All @@ -21,7 +28,7 @@ jobs:
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- run: cargo clippy --workspace --all-targets --all-features
- run: cargo clippy --bin "${{ matrix.binary }}" --all-targets --features "jemalloc,${{ matrix.network }}"
env:
RUSTFLAGS: -D warnings

Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/sanity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ jobs:
unused-deps:
runs-on: ubuntu-latest
name: unused dependencies
strategy:
matrix:
network: ["ethereum", "optimism"]
steps:
- name: Checkout sources
uses: actions/checkout@v3
Expand All @@ -76,7 +79,7 @@ jobs:
run: cargo install cargo-udeps --locked

- name: Check for unused dependencies
run: cargo +nightly udeps --all-features --all-targets
run: cargo +nightly udeps --features "jemalloc,${{ matrix.network }}" --all-targets

- uses: JasonEtco/create-an-issue@v2
if: ${{ failure() }}
Expand Down
2 changes: 2 additions & 0 deletions bin/reth/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ optimism = [
"reth-network/optimism",
"reth-network-api/optimism"
]
# no-op feature flag for switching between the `optimism` and default functionality in CI matrices
ethereum = []

[build-dependencies]
vergen = { version = "8.0.0", features = ["build", "cargo", "git", "gitcl"] }
Expand Down

0 comments on commit 7b8b33c

Please sign in to comment.