Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions pre-commit/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Loading