Skip to content

Commit 9264e32

Browse files
committed
Split mdbook link check to a separate job
1 parent 02e5577 commit 9264e32

File tree

1 file changed

+22
-7
lines changed

1 file changed

+22
-7
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,6 @@ jobs:
4141
- name: Install mdbook-mermaid
4242
run: cd book && curl -L https://github.com/badboy/mdbook-mermaid/releases/download/0.2.2/mdbook-mermaid-0.2.2-x86_64-unknown-linux-gnu.tar.gz | tar xz
4343

44-
- name: Install mdbook-linkcheck
45-
run: |
46-
cd book
47-
curl -L https://github.com/Michael-F-Bryan/mdbook-linkcheck/releases/download/v0.5.0/mdbook-linkcheck-v0.5.0-x86_64-unknown-linux-gnu.tar.gz | tar xz
48-
# Add the book directory to the $PATH
49-
echo "::add-path::$GITHUB_WORKSPACE/book"
50-
5144
- name: Execute tests for Chalk book
5245
run: cd book && ./mdbook test
5346

@@ -85,3 +78,25 @@ jobs:
8578
8679
- name: Check formatting of all crates in the workspace
8780
run: cargo fmt --all -- --check
81+
82+
mdbook-linkcheck:
83+
name: Book link check
84+
runs-on: ubuntu-latest
85+
steps:
86+
- name: Checkout the source code
87+
uses: actions/checkout@master
88+
with:
89+
fetch-depth: 1
90+
91+
- name: Install mdbook
92+
run: cd book && curl -L https://github.com/rust-lang/mdBook/releases/download/v0.3.7/mdbook-v0.3.7-x86_64-unknown-linux-gnu.tar.gz | tar xz
93+
94+
- name: Install mdbook-linkcheck
95+
run: |
96+
cd book
97+
curl -L https://github.com/Michael-F-Bryan/mdbook-linkcheck/releases/download/v0.5.0/mdbook-linkcheck-v0.5.0-x86_64-unknown-linux-gnu.tar.gz | tar xz
98+
# Add the book directory to the $PATH
99+
echo "::add-path::$GITHUB_WORKSPACE/book"
100+
101+
- name: Build Chalk book
102+
run: cd book && ./mdbook build

0 commit comments

Comments
 (0)