Skip to content

Commit 636cf43

Browse files
committed
Separate workflow to run check-static (cppcheck) build step
1 parent 7267c1d commit 636cf43

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Setup Dependencies
2626
run: |
2727
sudo apt-get update -y -qq
28-
sudo apt-get install -y libfuzzy-dev libyajl-dev libgeoip-dev liblua5.2-dev liblmdb-dev cppcheck libmaxminddb-dev libcurl4-openssl-dev libpcre2-dev pcre2-utils
28+
sudo apt-get install -y libfuzzy-dev libyajl-dev libgeoip-dev liblua5.2-dev liblmdb-dev libmaxminddb-dev libcurl4-openssl-dev libpcre2-dev pcre2-utils
2929
- uses: actions/checkout@v2
3030
with:
3131
submodules: true
@@ -38,8 +38,6 @@ jobs:
3838
run: make -j `nproc`
3939
- name: check
4040
run: make check
41-
- name: check-static
42-
run: make check-static
4341

4442
build-macos:
4543
runs-on: ${{ matrix.os }}
@@ -125,3 +123,21 @@ jobs:
125123
working-directory: build\win32\build
126124
run: |
127125
ctest -C ${{ matrix.configuration }} --output-on-failure
126+
127+
cppcheck:
128+
runs-on: [ubuntu-22.04]
129+
steps:
130+
- name: Setup Dependencies
131+
run: |
132+
sudo apt-get update -y -qq
133+
sudo apt-get install -y cppcheck
134+
- name: Get libModSecurity v3 source
135+
uses: actions/checkout@v4
136+
with:
137+
submodules: true
138+
- name: Configure libModSecurity
139+
run: |
140+
./build.sh
141+
./configure
142+
- name: Run cppcheck on libModSecurity
143+
run: make check-static

0 commit comments

Comments
 (0)