Skip to content

Commit 919f1c2

Browse files
committed
Use install-action to install mdbook and mdbook-linkcheck
1 parent 9b936d4 commit 919f1c2

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,16 @@ on:
99
jobs:
1010
test:
1111
name: build and test
12-
env:
13-
MDBOOK_LINKCHECK_VERSION: 0.7.0
1412
runs-on: ubuntu-latest
1513
steps:
1614
- uses: actions/checkout@v2
1715
- name: Install Rust
1816
run: rustup update stable && rustup default stable
1917
- run: sudo apt-get update && sudo apt-get install aspell aspell-en
20-
- name: Install mdbook and mdbook-linkcheck
21-
run: |
22-
tag=$(curl -LsSf https://api.github.com/repos/rust-lang/mdBook/releases/latest | jq -r '.tag_name')
23-
curl -LsSf https://github.com/rust-lang/mdBook/releases/download/$tag/mdbook-$tag-x86_64-unknown-linux-gnu.tar.gz | tar xzf -
24-
curl -LsSf https://github.com/Michael-F-Bryan/mdbook-linkcheck/releases/download/v${MDBOOK_LINKCHECK_VERSION}/mdbook-linkcheck-v${MDBOOK_LINKCHECK_VERSION}-x86_64-unknown-linux-gnu.tar.gz | tar xzf -
25-
echo $(pwd) >> $GITHUB_PATH
18+
- name: Install mdbook
19+
uses: taiki-e/install-action@mdbook
20+
- name: Install mdbook-linkcheck
21+
uses: taiki-e/install-action@mdbook-linkcheck
2622
- run: bash ci/spellcheck.sh list
2723
- run: mdbook build
2824
- run: cargo test --all --manifest-path=./examples/Cargo.toml --target-dir ./target

0 commit comments

Comments
 (0)