File tree Expand file tree Collapse file tree 1 file changed +12
-32
lines changed
Expand file tree Collapse file tree 1 file changed +12
-32
lines changed Original file line number Diff line number Diff line change 99
1010jobs :
1111 cppcheck :
12- runs-on : ubuntu-latest
13- steps :
14- - uses : actions/checkout@v4
15-
16- - name : Install dependencies
17- run : |
18- sudo apt-get update
19- sudo DEBIAN_FRONTEND=noninteractive apt-get -y install cppcheck
20-
21- - name : Configure
22- run : |
23- cmake -S . -B build \
24- -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
25- -DBUILD_PYTHON=OFF \
26- -DBUILD_TESTING=OFF
27-
28- - name : Run cppcheck
29- run : |
30- cppcheck \
31- --enable=style,portability,performance,warning \
32- --library=posix \
33- --library=cppcheck/segyio.cfg \
34- --suppressions-list=cppcheck/suppressions.txt \
35- --inline-suppr \
36- --project=build/compile_commands.json \
37- --error-exitcode=1 \
38- --check-level=exhaustive
39-
40- cppcheck_mac :
41- runs-on : macos-latest
12+ name : cppcheck on ${{ matrix.os }}
13+ runs-on : ${{ matrix.os }}
14+ strategy :
15+ fail-fast : false
16+ matrix :
17+ include :
18+ - os : ubuntu-latest
19+ cppcheck_install_command : sudo apt-get update && sudo DEBIAN_FRONTEND=noninteractive apt-get -y install cppcheck
20+ - os : macos-latest
21+ cppcheck_install_command : brew install cppcheck
4222 steps :
4323 - uses : actions/checkout@v4
4424
4525 - name : Install dependencies
4626 run : |
47- brew install cppcheck
27+ ${{ matrix.cppcheck_install_command }}
4828
4929 - name : Configure
5030 run : |
6444 --project=build/compile_commands.json \
6545 --error-exitcode=1 \
6646 --check-level=exhaustive
67-
47+
6848 scan_build :
6949 runs-on : ubuntu-latest
7050 steps :
You can’t perform that action at this time.
0 commit comments