Skip to content

Commit

Permalink
[action] fix cppcheck build dir (#9406)
Browse files Browse the repository at this point in the history
  • Loading branch information
supperthomas authored Sep 9, 2024
1 parent 66dd03f commit 3943a3e
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/static_code_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
cd ..
python tools/ci/cpp_check.py check

0 comments on commit 3943a3e

Please sign in to comment.