Update main.yml

pull/464/head
nomicon-kr 10 months ago committed by GitHub
parent 61b837db93
commit 6fe2608994
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -7,29 +7,29 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Update rustup
run: rustup self update
- name: Install Rust
run: |
rustup set profile minimal
rustup toolchain install nightly -c rust-docs
rustup default nightly
- name: Setup Rust Toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1.9.0
with:
toolchain: nightly
- name: Install mdbook
env:
MDBOOK_VER: v0.4.3
run: |
mkdir bin
curl -sSL https://github.com/rust-lang/mdBook/releases/download/${{ env.MDBOOK_VER }}/mdbook-${{ env.MDBOOK_VER }}-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=bin
echo "$(pwd)/bin" >> $GITHUB_PATH
- name: Report versions
run: |
rustup --version
rustc -Vv
mdbook --version
run: cargo install mdbook
- name: Run tests
run: mdbook test
- name: Check for broken links
- name: Cache/Restore linkcheck
id: cache
uses: actions/cache@v4.0.2
with:
path: ${GITHUB_WORKSPACE}/linkcheck.sh
key: linkcheck-${{ runner.os }}
- name: Install linkcheck
if: steps.cache.outputs.cache-hit != 'true'
run: |
curl -sSLo linkcheck.sh \
https://raw.githubusercontent.com/rust-lang/rust/master/src/tools/linkchecker/linkcheck.sh
sh linkcheck.sh --all nomicon
- name: Check links
run: sh linkcheck.sh --all nomicon

Loading…
Cancel
Save