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 aced7dc commit 30b2eb8
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,22 @@ jobs:
- name: Run tests
run: mdbook test

- name: Cache/Restore linkcheck
id: cache
uses: actions/cache@v4.0.2
with:
path: linkchecker
key: linkchecker-${{ runner.os }}
# - name: Cache/Restore linkcheck
# id: cache
# uses: actions/cache@v4.0.2
# with:
# path: linkchecker
# key: linkchecker-${{ runner.os }}

- name: Install linkcheck and Check links
if: steps.cache.outputs.cache-hit != 'true'
# 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
if: steps.cache.outputs.cache-hit == 'true'
run: |
cd linkchecker
cargo run --release linkcheck
# - name: Check links
# if: steps.cache.outputs.cache-hit == 'true'
# run: |
# cd linkchecker
# cargo run --release linkcheck

0 comments on commit 30b2eb8

Please sign in to comment.