Skip to content

Commit b6f6334

Browse files
committed
ci: build documentation and forbid warnings
1 parent a661273 commit b6f6334

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,3 +229,20 @@ jobs:
229229

230230
- name: Verify release artifact
231231
run: ./ci/verify_android_release.sh
232+
233+
docs:
234+
name: Check for documentation errors
235+
runs-on: ubuntu-latest
236+
steps:
237+
- name: Checkout sources
238+
uses: actions/checkout@v3
239+
with:
240+
persist-credentials: false
241+
242+
- name: Install rust toolchain
243+
uses: dtolnay/rust-toolchain@stable
244+
245+
- name: Build documentation
246+
run: cargo doc --locked --all-features --no-deps --document-private-items
247+
env:
248+
RUSTDOCFLAGS: -Dwarnings

0 commit comments

Comments
 (0)