mirror of https://github.com/rust-lang/async-book
Use install-action to install mdbook and mdbook-linkcheck
This commit is contained in:
parent
9b936d43d9
commit
919f1c2b77
|
@ -9,20 +9,16 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
name: build and test
|
name: build and test
|
||||||
env:
|
|
||||||
MDBOOK_LINKCHECK_VERSION: 0.7.0
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
run: rustup update stable && rustup default stable
|
run: rustup update stable && rustup default stable
|
||||||
- run: sudo apt-get update && sudo apt-get install aspell aspell-en
|
- run: sudo apt-get update && sudo apt-get install aspell aspell-en
|
||||||
- name: Install mdbook and mdbook-linkcheck
|
- name: Install mdbook
|
||||||
run: |
|
uses: taiki-e/install-action@mdbook
|
||||||
tag=$(curl -LsSf https://api.github.com/repos/rust-lang/mdBook/releases/latest | jq -r '.tag_name')
|
- name: Install mdbook-linkcheck
|
||||||
curl -LsSf https://github.com/rust-lang/mdBook/releases/download/$tag/mdbook-$tag-x86_64-unknown-linux-gnu.tar.gz | tar xzf -
|
uses: taiki-e/install-action@mdbook-linkcheck
|
||||||
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 -
|
|
||||||
echo $(pwd) >> $GITHUB_PATH
|
|
||||||
- run: bash ci/spellcheck.sh list
|
- run: bash ci/spellcheck.sh list
|
||||||
- run: mdbook build
|
- run: mdbook build
|
||||||
- run: cargo test --all --manifest-path=./examples/Cargo.toml --target-dir ./target
|
- run: cargo test --all --manifest-path=./examples/Cargo.toml --target-dir ./target
|
||||||
|
|
Loading…
Reference in New Issue