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
  • Loading branch information
clabby committed Nov 4, 2023
1 parent 3f9b4e9 commit c8ca501
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ jobs:
name: clippy
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
matrix:
network: ["ethereum", "optimism"]
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@clippy
Expand All @@ -21,7 +24,7 @@ jobs:
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- run: cargo clippy --workspace --all-targets --all-features
- run: cargo clippy --workspace --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 c8ca501

Please sign in to comment.