Update main.yml

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

@ -20,22 +20,22 @@ jobs:
- name: Run tests - name: Run tests
run: mdbook test run: mdbook test
- name: Cache/Restore linkcheck # - name: Cache/Restore linkcheck
id: cache # id: cache
uses: actions/cache@v4.0.2 # uses: actions/cache@v4.0.2
with: # with:
path: linkchecker # path: linkchecker
key: linkchecker-${{ runner.os }} # key: linkchecker-${{ runner.os }}
- name: Install linkcheck and Check links - name: Install linkcheck and Check links
if: steps.cache.outputs.cache-hit != 'true' # if: steps.cache.outputs.cache-hit != 'true'
run: | run: |
curl -sSLo linkcheck.sh \ curl -sSLo linkcheck.sh \
https://raw.githubusercontent.com/rust-lang/rust/master/src/tools/linkchecker/linkcheck.sh https://raw.githubusercontent.com/rust-lang/rust/master/src/tools/linkchecker/linkcheck.sh
sh linkcheck.sh --all nomicon sh linkcheck.sh --all nomicon
- name: Check links # - name: Check links
if: steps.cache.outputs.cache-hit == 'true' # if: steps.cache.outputs.cache-hit == 'true'
run: | # run: |
cd linkchecker # cd linkchecker
cargo run --release linkcheck # cargo run --release linkcheck

Loading…
Cancel
Save