From bf10d346d8dc9f046e16d1373b19704dd0aea94b Mon Sep 17 00:00:00 2001 From: Daniel Prilik Date: Sun, 12 Feb 2023 12:13:31 -0800 Subject: [PATCH] fail CI on bad docs --- .github/workflows/ci.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4134f41..b3b8e75 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,12 +20,6 @@ jobs: command: clippy args: --workspace --tests --examples --features=std -- -D warnings - - name: cargo doc - uses: actions-rs/cargo@v1 - with: - command: doc - args: --workspace --features=std - # don't forget the no_std example! - name: cargo clippy (example_no_std) uses: actions-rs/cargo@v1 @@ -43,6 +37,11 @@ jobs: run: ./example_no_std/dump_asm.sh shell: bash + - name: cargo doc + run: cargo doc --workspace --features=std + env: + RUSTDOCFLAGS: "-Dwarnings" + rustfmt: name: rustfmt (nightly) runs-on: ubuntu-latest