Skip to content

Commit a907f45

Browse files
committed
Use common script for link checking.
1 parent 1f7cb6a commit a907f45

File tree

2 files changed

+9
-30
lines changed

2 files changed

+9
-30
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,19 @@ jobs:
1111
run: rustup self update
1212
- name: Install Rust
1313
run: |
14+
set -e
1415
rustup set profile minimal
1516
rustup toolchain install nightly -c rust-docs
1617
rustup default nightly
1718
- name: Install mdbook
1819
run: |
20+
set -e
1921
mkdir bin
20-
curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.3.4/mdbook-v0.3.4-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=bin
22+
curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.3.5/mdbook-v0.3.5-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=bin
2123
echo "##[add-path]$(pwd)/bin"
2224
- name: Report versions
2325
run: |
26+
set -ex
2427
rustup --version
2528
rustc -Vv
2629
mdbook --version
@@ -29,4 +32,8 @@ jobs:
2932
- name: Check for unstable features
3033
run: (cd stable-check && cargo run -- ../src)
3134
- name: Check for broken links
32-
run: tests/linkcheck.sh
35+
run: |
36+
set -e
37+
curl -sSLo linkcheck.sh \
38+
https://raw.githubusercontent.com/rust-lang/rust/master/src/tools/linkchecker/linkcheck.sh
39+
sh linkcheck.sh --all reference

tests/linkcheck.sh

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)