From fb2640b3507d955c1bdd65f8da1f6deb4294e7f0 Mon Sep 17 00:00:00 2001 From: Christian Meusel Date: Mon, 31 May 2021 15:29:11 +0200 Subject: [PATCH] Check building docs with CI too eldruin suggested to add doc generation to CI (https://github.com/rust-embedded/discovery/issues/322#issuecomment-822575561) which seems a great idea to me. --- .github/workflows/ci.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8ea334652..9ba8483ee 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,6 +32,19 @@ jobs: working-directory: src/${{ matrix.chapter }} run: cargo build + # Check a build succeeds for docs. + build-doc: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + target: thumbv7em-none-eabihf + - name: Build docs + run: cargo doc + # Build the book HTML itself and optionally publish it. build-book: runs-on: ubuntu-20.04