Merge pull request #613 from lixiumei123/main

Add cppcheck in ci
This commit is contained in:
fengzeroz
2022-07-04 16:39:59 +08:00
committed by GitHub
2 changed files with 14 additions and 0 deletions
+13
View File
@@ -25,6 +25,19 @@ jobs:
clangFormatVersion: 10
style: file
cppcheck:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: cppcheck
run: |
sudo apt install cppcheck
cppcheck --enable=all --error-exitcode=2 --suppress=missingInclude --suppress=unusedFunction ./plugins ./simulator ./src
ut:
runs-on: ubuntu-20.04
+1
View File
@@ -35,6 +35,7 @@ jobs:
cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/${{ matrix.arch[0] }}.cmake \
-DCMAKE_BUILD_TYPE=Release -DDISABLE_UT=ON
make -j4
- name: get version
id: get_version
run: echo "::set-output name=version::$(cat version)"