File tree Expand file tree Collapse file tree 1 file changed +24
-3
lines changed
Expand file tree Collapse file tree 1 file changed +24
-3
lines changed Original file line number Diff line number Diff line change 1+ #
2+ # Copyright (c) 2006-2024, RT-Thread Development Team
3+ #
4+ # SPDX-License-Identifier: Apache-2.0
5+ #
6+ # Change Logs:
7+ # Date Author Notes
8+ # 2024-09-04 Supperthomas add cppcheck use the latest release version
9+ #
110name : Static code analysis
211
312on :
13+ workflow_dispatch :
414 pull_request :
515 branches :
616 - master
@@ -25,11 +35,22 @@ jobs:
2535 shell : bash
2636 run : |
2737 sudo apt-get update
28- sudo apt-get -qq install cppcheck
2938 pip install click PyYaml
39+ git clone https://github.com/danmar/cppcheck.git
40+ cd cppcheck
41+ git fetch --tags
42+ latest_tag=$(git describe --tags `git rev-list --tags --max-count=1`)
43+ echo "Latest release tag: $latest_tag"
44+ git checkout $latest_tag
45+ mkdir build
46+ cd build
47+ cmake ..
48+ make
49+ sudo make install
50+ cppcheck --version
51+ cd ../../
3052 git remote -v
3153 git fetch origin
32- cppcheck --version
3354 ls
3455 git branch -a
35- python tools/ci/cpp_check.py check
56+ python tools/ci/cpp_check.py check
You can’t perform that action at this time.
0 commit comments