File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -165,3 +165,67 @@ jobs:
165165 name : scan-build-results
166166 path : scan-build-report/
167167 retention-days : 5
168+ gcc-analyzer :
169+ name : GCC analyzer
170+ runs-on : ubuntu-latest
171+ container : ubuntu:26.04
172+ steps :
173+ - name : Cache scan-build
174+ uses : actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb
175+ with :
176+ path : ~/.cargo
177+ key : scan-build
178+
179+ - name : Install system packages
180+ run : |
181+ apt update
182+ apt -y install \
183+ libpcre2-dev \
184+ build-essential \
185+ autoconf \
186+ automake \
187+ cargo \
188+ cbindgen \
189+ dpdk-dev \
190+ gcc-16 \
191+ git \
192+ libtool \
193+ libpcap-dev \
194+ libnet1-dev \
195+ libyaml-0-2 \
196+ libyaml-dev \
197+ libcap-ng-dev \
198+ libcap-ng0 \
199+ libmagic-dev \
200+ libnetfilter-log-dev \
201+ libnetfilter-queue-dev \
202+ libnetfilter-queue1 \
203+ libnfnetlink-dev \
204+ libnfnetlink0 \
205+ libnuma-dev \
206+ libhiredis-dev \
207+ libhyperscan-dev \
208+ libjansson-dev \
209+ libevent-dev \
210+ libevent-pthreads-2.1-7 \
211+ liblz4-dev \
212+ make \
213+ python3-yaml \
214+ rustc \
215+ software-properties-common \
216+ zlib1g \
217+ zlib1g-dev
218+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
219+ - run : git config --global --add safe.directory /__w/suricata/suricata
220+ - run : ./scripts/bundle.sh
221+ - run : ./autogen.sh
222+ - run : ./configure --enable-warnings --enable-dpdk --enable-nfqueue --enable-nflog --enable-debug-validation
223+ env :
224+ CC : gcc-16
225+ CFLAGS : " -fanalyzer -Werror"
226+ SURICATA_LUA_SYS_CFLAGS : " "
227+ - run : make
228+ env :
229+ CC : gcc-16
230+ CFLAGS : " -fanalyzer -Werror"
231+ SURICATA_LUA_SYS_CFLAGS : " "
You can’t perform that action at this time.
0 commit comments