Browse Source

ci: Run cargo doc

Nicholas Bishop 1 month ago
parent
commit
c214336b0e
1 changed files with 2 additions and 0 deletions
  1. 2 0
      .github/workflows/ci.yml

+ 2 - 0
.github/workflows/ci.yml

@@ -12,6 +12,7 @@ on:
 
 
 env:
 env:
   RUSTFLAGS: -D warnings
   RUSTFLAGS: -D warnings
+  RUSTDOCFLAGS: -Dwarnings
   RUST_BACKTRACE: 1
   RUST_BACKTRACE: 1
 
 
 defaults:
 defaults:
@@ -45,5 +46,6 @@ jobs:
       - name: cargo build no_std
       - name: cargo build no_std
         run: cargo build --target thumbv7m-none-eabi --no-default-features
         run: cargo build --target thumbv7m-none-eabi --no-default-features
       - run: cargo clippy --all-features
       - run: cargo clippy --all-features
+      - run: cargo doc --all-features
       - name: Ensure README.md is updated
       - name: Ensure README.md is updated
         run: '[ "$(< README.md)" = "$(cargo readme)" ]'
         run: '[ "$(< README.md)" = "$(cargo readme)" ]'