Skip to content

Commit 180b40f

Browse files
committed
Check building docs with CI too
eldruin suggested to add doc generation to CI (#322 (comment)) which seems a great idea to me.
1 parent de5ff55 commit 180b40f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,19 @@ jobs:
3232
working-directory: src/${{ matrix.chapter }}
3333
run: cargo build
3434

35+
# Check a build succeeds for docs.
36+
build-doc:
37+
runs-on: ubuntu-20.04
38+
steps:
39+
- uses: actions/checkout@v2
40+
- uses: actions-rs/toolchain@v1
41+
with:
42+
profile: minimal
43+
toolchain: stable
44+
target: thumbv7em-none-eabihf
45+
- name: Build docs
46+
run: cargo doc
47+
3548
# Build the book HTML itself and optionally publish it.
3649
build-book:
3750
runs-on: ubuntu-20.04

0 commit comments

Comments
 (0)