From 2e7513726be9ce7ab58cde3c0e7f465d87fd2d87 Mon Sep 17 00:00:00 2001 From: Daniel McCarney Date: Tue, 9 Apr 2024 09:17:18 -0400 Subject: [PATCH] ci: build documentation and forbid warnings --- .github/workflows/ci.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9ba1f2ba..ca281dff 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -229,3 +229,20 @@ jobs: - name: Verify release artifact run: ./ci/verify_android_release.sh + + docs: + name: Check for documentation errors + runs-on: ubuntu-latest + steps: + - name: Checkout sources + uses: actions/checkout@v3 + with: + persist-credentials: false + + - name: Install rust toolchain + uses: dtolnay/rust-toolchain@nightly + + - name: Build documentation + run: cargo doc --locked --all-features --no-deps --document-private-items + env: + RUSTDOCFLAGS: -Dwarnings