Skip to content

Commit 36ff961

Browse files
committed
CI: check that documentation builds without errors
1 parent 8ff9bab commit 36ff961

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/main.yml

+13
Original file line numberDiff line numberDiff line change
@@ -119,3 +119,16 @@ jobs:
119119
run: |
120120
cargo test --locked --manifest-path simplicity-sys/Cargo.toml
121121
cargo test --locked --workspace --all-features
122+
123+
docs:
124+
name: Docs
125+
runs-on: ubuntu-latest
126+
steps:
127+
- name: Checkout Crate
128+
uses: actions/checkout@v4
129+
- name: Checkout Toolchain
130+
uses: dtolnay/rust-toolchain@nightly
131+
- name: Check that documentation builds without errors
132+
env:
133+
RUSTDOCFLAGS: "--cfg docsrs -D warnings -D rustdoc::broken-intra-doc-links"
134+
run: cargo doc -j1 --all-features

0 commit comments

Comments
 (0)