Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nomicon-kr authored Jun 22, 2024
1 parent 61b837d commit 6fe2608
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6fe2608

Please sign in to comment.