summaryrefslogtreecommitdiff
path: root/.github/workflows/static_code_analysis.yml
diff options
context:
space:
mode:
authorSupper Thomas <[email protected]>2024-09-09 14:13:43 +0800
committerGitHub <[email protected]>2024-09-09 14:13:43 +0800
commit3943a3e1638e37742215cf1ab3de4f80fecd8493 (patch)
tree5268bfd7c07de63d284ed2167d2f62b095cc6f17 /.github/workflows/static_code_analysis.yml
parent66dd03f6c26caa15adb174e36f11544f60d3dadf (diff)
[action] fix cppcheck build dir (#9406)
Diffstat (limited to '.github/workflows/static_code_analysis.yml')
-rw-r--r--.github/workflows/static_code_analysis.yml19
1 files changed, 8 insertions, 11 deletions
diff --git a/.github/workflows/static_code_analysis.yml b/.github/workflows/static_code_analysis.yml
index f00bf9caee..98297f67d8 100644
--- a/.github/workflows/static_code_analysis.yml
+++ b/.github/workflows/static_code_analysis.yml
@@ -36,21 +36,18 @@ jobs:
run: |
sudo apt-get update
pip install click PyYaml
+ git remote -v
+ git fetch origin
+ ls
+ git branch -a
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
- mkdir build
- cd build
- cmake ..
- make
- sudo make install FILESDIR=/usr/local/share/Cppcheck CFGDIR=/usr/share/Cppcheck/cfg
+ make FILESDIR=/usr/local/share/Cppcheck -j2
+ sudo make install FILESDIR=/usr/local/share/Cppcheck
cppcheck --version
- cd ../../
- git remote -v
- git fetch origin
- ls
- git branch -a
- python tools/ci/cpp_check.py check \ No newline at end of file
+ cd ..
+ python tools/ci/cpp_check.py check