Skip to content

Commit

Permalink
Check building docs with CI too
Browse files Browse the repository at this point in the history
eldruin suggested to add doc generation to CI
(rust-embedded#322 (comment))
which seems a great idea to me.
  • Loading branch information
sirhcel authored and Rimpampa committed Jan 17, 2022
1 parent bb163df commit fb2640b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fb2640b

Please sign in to comment.