From bac9382588bc3a3ef35f5a27a852f61fe7318cc9 Mon Sep 17 00:00:00 2001 From: Kotaro Yoshimoto Date: Fri, 21 Jun 2024 10:12:16 +0900 Subject: [PATCH] chore(ci): install binary cppcheck from snap Signed-off-by: Kotaro Yoshimoto --- .github/workflows/cppcheck-differential.yaml | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/.github/workflows/cppcheck-differential.yaml b/.github/workflows/cppcheck-differential.yaml index 914abd7df86e..28949c92f9c2 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