Skip to content

Commit 5bfbdae

Browse files
committed
Test docs.rs documentation build in CI
1 parent 435c7c8 commit 5bfbdae

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,22 @@ jobs:
5252
- run: cargo generate-lockfile -Z minimal-versions
5353
- run: cargo check --locked
5454

55+
doc:
56+
name: Documentation
57+
needs: pre_ci
58+
if: needs.pre_ci.outputs.continue
59+
runs-on: ubuntu-latest
60+
timeout-minutes: 45
61+
env:
62+
RUSTDOCFLAGS: -Dwarnings
63+
steps:
64+
- uses: actions/checkout@v4
65+
- uses: dtolnay/rust-toolchain@nightly
66+
with:
67+
components: rust-src
68+
- uses: dtolnay/install@cargo-docs-rs
69+
- run: cargo docs-rs
70+
5571
clippy:
5672
name: Clippy
5773
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)