diff --git a/.github/workflows/cppcheck-differential.yaml b/.github/workflows/cppcheck-differential.yaml index 914abd7df86ea..28949c92f9c2d 100644 --- a/.github/workflows/cppcheck-differential.yaml +++ b/.github/workflows/cppcheck-differential.yaml @@ -14,20 +14,12 @@ jobs: - name: Install dependencies run: | sudo apt-get update - sudo apt-get install -y build-essential cmake git libpcre3-dev + sudo apt-get install -y git - # cppcheck from apt does not yet support --check-level args, and thus install from source - - name: Install Cppcheck from source + # cppcheck from apt does not yet support --check-level args, and thus install from snap + - name: Install Cppcheck from snap run: | - mkdir /tmp/cppcheck - git clone https://github.com/danmar/cppcheck.git /tmp/cppcheck - cd /tmp/cppcheck - git checkout 2.14.1 - mkdir build - cd build - cmake .. - make -j $(nproc) - sudo make install + sudo snap install cppcheck --edge - name: Get changed files id: changed-files