Skip to content

Commit 980d88e

Browse files
committed
Build mdbook in remark workflow
This is just to ensure that the book builds all time to not get in trouble when syncing with rust-lang/rust
1 parent 71f2de9 commit 980d88e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/remark.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,19 @@ jobs:
2626
- name: Install remark
2727
run: npm install remark-cli remark-lint remark-lint-maximum-line-length remark-preset-lint-recommended remark-gfm
2828

29+
- name: Install mdbook
30+
run: |
31+
mkdir mdbook
32+
curl -Lf https://github.com/rust-lang/mdBook/releases/download/v0.4.18/mdbook-v0.4.18-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook
33+
echo `pwd`/mdbook >> $GITHUB_PATH
34+
2935
# Run
3036
- name: Check *.md files
3137
run: git ls-files -z '*.md' | xargs -0 -n 1 -I {} ./node_modules/.bin/remark {} -u lint -f > /dev/null
3238

39+
- name: Build mdbook
40+
run: mdbook build book
41+
3342
# These jobs doesn't actually test anything, but they're only used to tell
3443
# bors the build completed, as there is no practical way to detect when a
3544
# workflow is successful listening to webhooks only.

0 commit comments

Comments
 (0)