From 557242ed4da6112750ccaa9fa2f5a68f0967f52c Mon Sep 17 00:00:00 2001 From: Surya Date: Tue, 31 Mar 2026 14:14:57 +0530 Subject: [PATCH] fix: libpcre caching issue --- pre-commit/action.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pre-commit/action.yaml b/pre-commit/action.yaml index 39a69de..47593d5 100644 --- a/pre-commit/action.yaml +++ b/pre-commit/action.yaml @@ -41,7 +41,7 @@ inputs: cppcheck-version: description: "Cppcheck version used for pre-commit." required: false - default: "2.13.0" + default: "2.20.0" args: description: "Arguments given to pre-commit." required: false @@ -81,12 +81,15 @@ runs: HAVE_RULES=yes \ install \ PREFIX=${{ github.workspace }}/.cache/cppcheck + cp /usr/lib/x86_64-linux-gnu/libpcre.so.3 ${{ github.workspace }}/.cache/cppcheck/lib/ echo "Cppcheck built." - name: Add Cppcheck to PATH if: ${{ inputs.use-cppcheck == 'true' }} shell: bash - run: echo "${{ github.workspace }}/.cache/cppcheck/bin" >> $GITHUB_PATH + run: | + echo "${{ github.workspace }}/.cache/cppcheck/bin" >> $GITHUB_PATH + echo "LD_LIBRARY_PATH=${{ github.workspace }}/.cache/cppcheck/lib:$LD_LIBRARY_PATH" >> $GITHUB_ENV - name: Set up pre-commit cache id: cache-pre-commit