[action] fix cppcheck build dir (#9406)
This commit is contained in:
parent
66dd03f6c2
commit
3943a3e163
|
@ -36,21 +36,18 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
pip install click PyYaml
|
pip install click PyYaml
|
||||||
|
git remote -v
|
||||||
|
git fetch origin
|
||||||
|
ls
|
||||||
|
git branch -a
|
||||||
git clone https://github.com/danmar/cppcheck.git
|
git clone https://github.com/danmar/cppcheck.git
|
||||||
cd cppcheck
|
cd cppcheck
|
||||||
git fetch --tags
|
git fetch --tags
|
||||||
latest_tag=$(git describe --tags `git rev-list --tags --max-count=1`)
|
latest_tag=$(git describe --tags `git rev-list --tags --max-count=1`)
|
||||||
echo "Latest release tag: $latest_tag"
|
echo "Latest release tag: $latest_tag"
|
||||||
git checkout $latest_tag
|
git checkout $latest_tag
|
||||||
mkdir build
|
make FILESDIR=/usr/local/share/Cppcheck -j2
|
||||||
cd build
|
sudo make install FILESDIR=/usr/local/share/Cppcheck
|
||||||
cmake ..
|
|
||||||
make
|
|
||||||
sudo make install FILESDIR=/usr/local/share/Cppcheck CFGDIR=/usr/share/Cppcheck/cfg
|
|
||||||
cppcheck --version
|
cppcheck --version
|
||||||
cd ../../
|
cd ..
|
||||||
git remote -v
|
python tools/ci/cpp_check.py check
|
||||||
git fetch origin
|
|
||||||
ls
|
|
||||||
git branch -a
|
|
||||||
python tools/ci/cpp_check.py check
|
|
||||||
|
|
Loading…
Reference in New Issue