From 0d2622d5c65f8a05f19b55215e6b5ec939cc96be Mon Sep 17 00:00:00 2001 From: Bert Peters Date: Sat, 7 May 2022 17:44:58 +0200 Subject: [PATCH] Build documentation on CI --- .github/workflows/ci.yml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0375c09..d3601f8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ on: name: Continuous integration jobs: - ci: + tests: name: Rust project runs-on: ubuntu-latest strategy: @@ -47,3 +47,22 @@ jobs: with: command: clippy args: --all-features --all-targets -- -D warnings + + docs: + name: Documentation build + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: nightly + override: true + + - name: Build documentation + env: + # Build the docs like docs.rs builds it + RUSTDOCFLAGS: --cfg docsrs + run: cargo doc --all-features