File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 36
36
--project=build/compile_commands.json \
37
37
--error-exitcode=1
38
38
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
+
39
66
scan_build :
40
67
runs-on : ubuntu-latest
41
68
steps :
You can’t perform that action at this time.
0 commit comments