From a51332e6ed5a048b45a617590b87a5bfae8fbe58 Mon Sep 17 00:00:00 2001 From: Waleed Khan Date: Sun, 8 Dec 2024 12:11:25 -0800 Subject: [PATCH] ci: check `cargo doc` --- .github/workflows/build.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1c7ac21bb3..e3df89b769 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -118,6 +118,19 @@ jobs: components: rustfmt - run: cargo +nightly fmt --all -- --check + check-cargo-doc: + name: Check `cargo doc` for warnings + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 + - uses: dtolnay/rust-toolchain@1482605bfc5719782e1267fd0c0cc350fe7646b8 + with: + toolchain: stable + - name: Check `cargo doc` + env: + RUSTDOCFLAGS: "--deny warnings" + run: cargo doc --workspace --no-deps + mkdocs: name: Check that MkDocs can build the docs runs-on: ubuntu-latest