Skip to content

Commit c072f1a

Browse files
committed
Fix the link checker job
Signed-off-by: Wiktor Kwapisiewicz <[email protected]>
1 parent 5201f0a commit c072f1a

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,13 @@ jobs:
166166
runs-on: ubuntu-latest
167167
steps:
168168
- uses: actions/checkout@v4
169-
- name: Link Checker
170-
uses: peter-evans/link-checker@v1
169+
- name: Restore lychee cache
170+
uses: actions/cache@v4
171171
with:
172-
args: -v -r *.md
173-
- name: Fail if there were link errors
174-
run: exit ${{ steps.lc.outputs.exit_code }}
172+
path: .lycheecache
173+
key: cache-lychee-${{ github.sha }}
174+
restore-keys: cache-lychee-
175+
- name: Run lychee
176+
uses: lycheeverse/lychee-action@v2
177+
with:
178+
args: "--base . --cache --max-cache-age 1d --max-concurrency 1 ."

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@
1111

1212
#build artifacts
1313
cryptoki-sys/pkcs11-precompile.h
14+
15+
#link checker
16+
.lycheecache

0 commit comments

Comments
 (0)