From de3f10fe7b2a5be607e2c392b6a59aa58a7189d5 Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Wed, 17 Jul 2024 16:45:07 +0700 Subject: [PATCH] ci: Add `build-doc` job to test building docs. --- .github/workflows/parry-ci-build.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/parry-ci-build.yml b/.github/workflows/parry-ci-build.yml index 5d61ad95..f8aff15f 100644 --- a/.github/workflows/parry-ci-build.yml +++ b/.github/workflows/parry-ci-build.yml @@ -67,3 +67,15 @@ jobs: run: xargo build --verbose --no-default-features --features required-features --target=x86_64-unknown-linux-gnu; - name: build thumbv7em-none-eabihf run: xargo build --verbose --no-default-features --features required-features --target=thumbv7em-none-eabihf; + build-doc: + runs-on: ubuntu-latest + env: + RUSTDOCFLAGS: -D warnings + steps: + - uses: actions/checkout@v4 + - name: install stable Rust + uses: dtolnay/rust-toolchain@master + with: + toolchain: stable + - name: cargo doc + run: cargo doc --workspace --features bytemuck-serialize,serde-serialize,rkyv-serialize,parallel --no-deps --document-private-items