Skip to content

Commit

Permalink
Use common script for link checking.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Feb 21, 2020
1 parent 1f7cb6a commit a907f45
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 30 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,19 @@ jobs:
run: rustup self update
- name: Install Rust
run: |
set -e
rustup set profile minimal
rustup toolchain install nightly -c rust-docs
rustup default nightly
- name: Install mdbook
run: |
set -e
mkdir bin
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
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
echo "##[add-path]$(pwd)/bin"
- name: Report versions
run: |
set -ex
rustup --version
rustc -Vv
mdbook --version
Expand All @@ -29,4 +32,8 @@ jobs:
- name: Check for unstable features
run: (cd stable-check && cargo run -- ../src)
- name: Check for broken links
run: tests/linkcheck.sh
run: |
set -e
curl -sSLo linkcheck.sh \
https://raw.githubusercontent.com/rust-lang/rust/master/src/tools/linkchecker/linkcheck.sh
sh linkcheck.sh --all reference
28 changes: 0 additions & 28 deletions tests/linkcheck.sh

This file was deleted.

0 comments on commit a907f45

Please sign in to comment.