Skip to content

Commit eaa1d38

Browse files
committed
chore(ci): Use cargo-docs-rs to make docs check with the same options that would be used by docs.rs
1 parent 96a5d5b commit eaa1d38

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/CI.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -308,9 +308,18 @@ jobs:
308308
- uses: Swatinem/rust-cache@v2
309309
# we exlude crates that do not use rust-version = { workspace = true }
310310
- run: cargo no-dev-deps --no-private check --all-features --workspace --exclude grpc --exclude tonic-protobuf\*
311-
- run: cargo no-dev-deps --no-private doc --no-deps --all-features --workspace --exclude grpc --exclude tonic-protobuf\*
312-
env:
313-
RUSTDOCFLAGS: "-D warnings"
311+
312+
doc:
313+
runs-on: ubuntu-latest
314+
steps:
315+
- uses: actions/checkout@v5
316+
- uses: dtolnay/rust-toolchain@nightly
317+
- uses: dtolnay/install@cargo-docs-rs
318+
- uses: taiki-e/install-action@cargo-hack
319+
- uses: Swatinem/rust-cache@v2
320+
- run: cargo +nightly hack --no-private docs-rs
321+
env:
322+
RUSTDOCFLAGS: "-D warnings"
314323

315324
test:
316325
runs-on: ${{ matrix.os }}

0 commit comments

Comments
 (0)