[action] update cppcheck version
This commit is contained in:
parent
175a2ff954
commit
3174fcd77b
|
@ -1,6 +1,16 @@
|
||||||
|
#
|
||||||
|
# Copyright (c) 2006-2024, RT-Thread Development Team
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
#
|
||||||
|
# Change Logs:
|
||||||
|
# Date Author Notes
|
||||||
|
# 2024-09-04 Supperthomas add cppcheck use the latest release version
|
||||||
|
#
|
||||||
name: Static code analysis
|
name: Static code analysis
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
@ -25,11 +35,22 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get -qq install cppcheck
|
|
||||||
pip install click PyYaml
|
pip install click PyYaml
|
||||||
|
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
|
||||||
|
cppcheck --version
|
||||||
|
cd ../../
|
||||||
git remote -v
|
git remote -v
|
||||||
git fetch origin
|
git fetch origin
|
||||||
cppcheck --version
|
|
||||||
ls
|
ls
|
||||||
git branch -a
|
git branch -a
|
||||||
python tools/ci/cpp_check.py check
|
python tools/ci/cpp_check.py check
|
Loading…
Reference in New Issue