From 92fd50ee8cb52968d9c66fbe6d67638c1f838e26 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 24 Sep 2023 10:53:43 -0700 Subject: [PATCH] Test docs.rs documentation build in CI --- .github/workflows/ci.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 068dd242f7..5d9f630a49 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -92,19 +92,21 @@ jobs: - run: cargo check --manifest-path examples/lazy-static/example/Cargo.toml - run: cargo check --manifest-path examples/trace-var/example/Cargo.toml - docs: - name: Docs + doc: + name: Documentation needs: pre_ci if: needs.pre_ci.outputs.continue runs-on: ubuntu-latest - env: - RUSTDOCFLAGS: --cfg=doc_cfg -Dbroken_intra_doc_links timeout-minutes: 45 + env: + RUSTDOCFLAGS: -Dwarnings steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@nightly + - uses: dtolnay/install@cargo-docs-rs + - run: cargo docs-rs + - run: cargo docs-rs --manifest-path json/Cargo.toml - run: cargo test --all-features --doc - - run: cargo doc --all-features codegen: name: Codegen