From b8a268d5502953b447561fc7970b117d48668aa2 Mon Sep 17 00:00:00 2001 From: Pratyush Mishra Date: Wed, 24 Mar 2021 03:49:35 -0700 Subject: [PATCH] Check docs in CI --- .github/workflows/ci.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5b7585a..4811ae6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -86,6 +86,27 @@ jobs: --all-features \ --exclude cp-benches " + docs: + name: Check Documentation + runs-on: ubuntu-latest + steps: + + - name: Checkout + uses: actions/checkout@v1 + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + components: rustfmt + + - name: cargo doc --all --no-deps --document-private-items --all-features + uses: actions-rs/cargo@v1 + with: + command: doc + args: --all --no-deps --document-private-items --all-features + check_no_std: name: Check no_std runs-on: ubuntu-latest