Skip to content

Commit 9e1e59a

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 9e1e59a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/CI.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,16 @@ 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\*
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
312321
env:
313322
RUSTDOCFLAGS: "-D warnings"
314323

0 commit comments

Comments
 (0)