From e0c58233ad2747959407a1741c05742dafc4e1f5 Mon Sep 17 00:00:00 2001 From: Eduardo Arias Date: Sun, 28 Apr 2024 17:45:54 -0300 Subject: [PATCH] Use latest version of cppcheck (2.14.2) - Run cppcheck on MacOS to use a newer version of cppcheck --- .github/workflows/ci.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 71ca3c7c..2fe0010a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -178,20 +178,21 @@ jobs: ctest -C ${{ matrix.configuration }} --output-on-failure cppcheck: - runs-on: [ubuntu-22.04] + runs-on: [macos-14] steps: - name: Setup Dependencies run: | - sudo apt-get update -y -qq - sudo apt-get install -y cppcheck - - name: Checkout source - uses: actions/checkout@v4 + brew install autoconf \ + automake \ + libtool \ + cppcheck + - uses: actions/checkout@v4 with: submodules: true fetch-depth: 0 - - name: Configure libModSecurity + - name: configure run: | ./build.sh ./configure - - name: Run cppcheck on libModSecurity + - name: cppcheck run: make check-static