Skip to content

Commit

Permalink
disble doc and book workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
mask-pp committed Oct 31, 2024
1 parent 569c972 commit 645cc48
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 72 deletions.
49 changes: 0 additions & 49 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,22 +91,6 @@ jobs:
env:
RUSTFLAGS: -D warnings

docs:
name: docs
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 docs --document-private-items
env:
# Keep in sync with ./book.yml:jobs.build
# This should only add `-D warnings`
RUSTDOCFLAGS: --cfg docsrs --show-type-layout --generate-link-to-definition --enable-index-page -Zunstable-options -D warnings

fmt:
name: fmt
runs-on: ubuntu-latest
Expand Down Expand Up @@ -134,26 +118,6 @@ jobs:
- uses: taiki-e/install-action@cargo-udeps
- run: cargo udeps --workspace --lib --examples --tests --benches --all-features --locked

book:
name: book
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- uses: dtolnay/rust-toolchain@master
with:
toolchain: "1.81" # MSRV
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- run: cargo build --bin reth --workspace --features ethereum
env:
RUSTFLAGS: -D warnings
- run: ./book/cli/update.sh target/debug/reth
- name: Check book changes
run: git diff --exit-code

codespell:
runs-on: ubuntu-latest
timeout-minutes: 30
Expand All @@ -163,16 +127,6 @@ jobs:
with:
skip: "*.json"

grafana:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: Check dashboard JSON with jq
uses: sergeysova/jq-action@v2
with:
cmd: jq empty etc/grafana/dashboards/overview.json

no-test-deps:
runs-on: ubuntu-latest
timeout-minutes: 30
Expand Down Expand Up @@ -207,12 +161,9 @@ jobs:
- clippy-binaries
- clippy
- crate-checks
- docs
- fmt
- udeps
- book
- codespell
- grafana
- no-test-deps
- features
timeout-minutes: 30
Expand Down
24 changes: 1 addition & 23 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@ jobs:
args: --features "asm-keccak ethereum" --locked
partition: 2
total_partitions: 2
- type: book
args: --manifest-path book/sources/Cargo.toml
partition: 1
total_partitions: 1
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -80,29 +76,11 @@ jobs:
cache-on-failure: true
- run: cargo nextest run --release -p ef-tests --features "asm-keccak ef-tests"

doc:
name: doc tests (${{ matrix.network }})
runs-on: ubuntu-latest
env:
RUST_BACKTRACE: 1
timeout-minutes: 30
strategy:
matrix:
network: ["ethereum"]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: Run doctests
run: cargo test --doc --workspace --features "${{ matrix.network }}"

unit-success:
name: unit success
runs-on: ubuntu-latest
if: always()
needs: [test, state, doc]
needs: [test, state]
timeout-minutes: 30
steps:
- name: Decide whether the needed jobs succeeded or failed
Expand Down

0 comments on commit 645cc48

Please sign in to comment.