From f302026070aa80df17c16579d09180daa644a2a7 Mon Sep 17 00:00:00 2001 From: sakumisu <1203593632@qq.com> Date: Fri, 27 Sep 2024 22:04:30 +0800 Subject: [PATCH] Update cppcheck.yml --- .github/workflows/cppcheck.yml | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/.github/workflows/cppcheck.yml b/.github/workflows/cppcheck.yml index bf4b412b..7216805d 100644 --- a/.github/workflows/cppcheck.yml +++ b/.github/workflows/cppcheck.yml @@ -12,14 +12,5 @@ jobs: - name: cppcheck shell: bash run: | - git clone https://github.com/danmar/cppcheck.git - cd cppcheck - git fetch --tags - latest_tag=$(git describe --tags `git rev-list --tags --max-count=1`) - echo "Latest release tag: $latest_tag" - git checkout $latest_tag - make FILESDIR=/usr/local/share/Cppcheck -j8 - sudo make install FILESDIR=/usr/local/share/Cppcheck - cd .. - cppcheck --version - cppcheck --enable=warning,portability,performance --language=c --platform=unix32 --std=c99 class/ core/ common/ port/ -i class/template/ port/template/ + sudo apt install cppcheck + cppcheck --enable=warning,portability,performance --language=c --platform=unix32 --std=c99 . -i class/template/ port/template/ thirdparty/