From c072f1a82dd9faf279863b9a45b01390028ca01f Mon Sep 17 00:00:00 2001 From: Wiktor Kwapisiewicz Date: Tue, 29 Jul 2025 16:13:52 +0200 Subject: [PATCH] Fix the link checker job Signed-off-by: Wiktor Kwapisiewicz --- .github/workflows/ci.yml | 14 +++++++++----- .gitignore | 3 +++ 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 935b6085..09e014cc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -166,9 +166,13 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Link Checker - uses: peter-evans/link-checker@v1 + - name: Restore lychee cache + uses: actions/cache@v4 with: - args: -v -r *.md - - name: Fail if there were link errors - run: exit ${{ steps.lc.outputs.exit_code }} + path: .lycheecache + key: cache-lychee-${{ github.sha }} + restore-keys: cache-lychee- + - name: Run lychee + uses: lycheeverse/lychee-action@v2 + with: + args: "--base . --cache --max-cache-age 1d --max-concurrency 1 ." diff --git a/.gitignore b/.gitignore index c65aed2f..dd9a0f14 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,6 @@ #build artifacts cryptoki-sys/pkcs11-precompile.h + +#link checker +.lycheecache