Skip to content

Commit 5193be2

Browse files
committed
Add cppcheck for mac os
1 parent 0beb3c1 commit 5193be2

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/analyzers.yaml

+27
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,33 @@ jobs:
3636
--project=build/compile_commands.json \
3737
--error-exitcode=1
3838
39+
cppcheck_mac:
40+
runs-on: macos-latest
41+
steps:
42+
- uses: actions/checkout@v4
43+
44+
- name: Install dependencies
45+
run: |
46+
brew install cppcheck
47+
48+
- name: Configure
49+
run: |
50+
cmake -S . -B build \
51+
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
52+
-DBUILD_PYTHON=OFF \
53+
-DBUILD_TESTING=OFF
54+
55+
- name: Run cppcheck
56+
run: |
57+
cppcheck \
58+
--enable=style,portability,performance,warning \
59+
--library=posix \
60+
--library=cppcheck/segyio.cfg \
61+
--suppressions-list=cppcheck/suppressions.txt \
62+
--inline-suppr \
63+
--project=build/compile_commands.json \
64+
--error-exitcode=1
65+
3966
scan_build:
4067
runs-on: ubuntu-latest
4168
steps:

0 commit comments

Comments
 (0)