Skip to content

Commit

Permalink
Separate workflow to run check-static (cppcheck) build step
Browse files Browse the repository at this point in the history
  • Loading branch information
eduar-hte committed May 17, 2024
1 parent be19673 commit 31da786
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Setup Dependencies
run: |
sudo apt-get update -y -qq
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
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
- uses: actions/checkout@v2
with:
submodules: true
Expand All @@ -38,8 +38,6 @@ jobs:
run: make -j `nproc`
- name: check
run: make check
- name: check-static
run: make check-static

build-macos:
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -125,3 +123,21 @@ jobs:
working-directory: build\win32\build
run: |
ctest -C ${{ matrix.configuration }} --output-on-failure
cppcheck:
runs-on: [ubuntu-22.04]
steps:
- name: Setup Dependencies
run: |
sudo apt-get update -y -qq
sudo apt-get install -y cppcheck
- name: Get libModSecurity v3 source
uses: actions/checkout@v4
with:
submodules: true
- name: Configure libModSecurity
run: |
./build.sh
./configure
- name: Run cppcheck on libModSecurity
run: make check-static

0 comments on commit 31da786

Please sign in to comment.