ci: remove check-cfg job (#8106)

This commit is contained in:
DaniPopes
2024-05-05 12:31:12 +02:00
committed by GitHub
parent d01996103b
commit 101e99f57f
3 changed files with 4 additions and 20 deletions

View File

@ -27,8 +27,7 @@ jobs:
- uses: Swatinem/rust-cache@v2 - uses: Swatinem/rust-cache@v2
with: with:
cache-on-failure: true cache-on-failure: true
- run: - run: cargo clippy --bin "${{ matrix.binary }}" --workspace --features "${{ matrix.network }} asm-keccak jemalloc jemalloc-prof min-error-logs min-warn-logs min-info-logs min-debug-logs min-trace-logs"
cargo clippy --bin "${{ matrix.binary }}" --workspace --features "${{ matrix.network }} asm-keccak jemalloc jemalloc-prof min-error-logs min-warn-logs min-info-logs min-debug-logs min-trace-logs"
env: env:
RUSTFLAGS: -D warnings RUSTFLAGS: -D warnings
@ -95,9 +94,7 @@ jobs:
env: env:
# Keep in sync with ./book.yml:jobs.build # Keep in sync with ./book.yml:jobs.build
# This should only add `-D warnings` # This should only add `-D warnings`
RUSTDOCFLAGS: RUSTDOCFLAGS: --cfg docsrs --show-type-layout --generate-link-to-definition --enable-index-page -Zunstable-options -D warnings
--cfg docsrs --show-type-layout --generate-link-to-definition --enable-index-page
-Zunstable-options -D warnings
fmt: fmt:
name: fmt name: fmt
@ -126,23 +123,11 @@ jobs:
with: with:
cmd: jq empty etc/grafana/dashboards/overview.json cmd: jq empty etc/grafana/dashboards/overview.json
check-cfg:
name: check-cfg
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- run: cargo +nightly -Zcheck-cfg c
lint-success: lint-success:
name: lint success name: lint success
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: always() if: always()
needs: [clippy-binaries, clippy, crate-checks, docs, fmt, codespell, grafana, check-cfg] needs: [clippy-binaries, clippy, crate-checks, docs, fmt, codespell, grafana]
timeout-minutes: 30 timeout-minutes: 30
steps: steps:
- name: Decide whether the needed jobs succeeded or failed - name: Decide whether the needed jobs succeeded or failed

View File

@ -48,7 +48,7 @@ macro_rules! fuzz_type_and_name {
}; };
} }
#[cfg(any(test, feature = "bench"))] #[cfg(test)]
pub mod fuzz_rlp { pub mod fuzz_rlp {
use crate::roundtrip_encoding; use crate::roundtrip_encoding;
use alloy_rlp::{RlpDecodableWrapper, RlpEncodableWrapper}; use alloy_rlp::{RlpDecodableWrapper, RlpEncodableWrapper};

View File

@ -4,7 +4,6 @@ mod multiplex;
mod requests; mod requests;
mod session; mod session;
mod startup; mod startup;
#[cfg(not(feature = "optimism"))]
mod txgossip; mod txgossip;
fn main() {} fn main() {}