Skip to content

Commit 55e3805

Browse files
folkertdevbjorn3
andcommitted
build the docs on CI
Co-authored-by: bjorn3 <[email protected]>
1 parent 1818419 commit 55e3805

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/main.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,17 @@ jobs:
5050
rustup update $TOOLCHAIN --no-self-update && rustup default $TOOLCHAIN
5151
shell: bash
5252
if: matrix.build == 'msrv'
53+
- name: Run cargo doc, deny warnings
54+
env:
55+
RUSTDOCFLAGS: "-D warnings"
56+
run: |
57+
cargo doc -p bzip2-sys --no-deps
58+
cargo doc -p bzip2 --no-deps
59+
- name: Run cargo doc, deny warnings (libbz2-rs-sys)
60+
env:
61+
RUSTDOCFLAGS: "-Dwarnings"
62+
if: matrix.build != 'msrv'
63+
run: cargo doc -p bzip2 --no-deps --no-default-features --features libbz2-rs-sys
5364
- run: cargo test
5465
- run: cargo test --no-default-features --features libbz2-rs-sys
5566
if: matrix.build != 'msrv'

0 commit comments

Comments
 (0)