From 106e09ed5702dc3072ee8dbcf32c8562157eabd2 Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Mon, 16 Jun 2025 15:18:19 -0600 Subject: [PATCH] github-ci: add windows ucrt build MSYS2 now recommends the UCRT environment as the default, so we should probably add a CI job for it. --- .github/workflows/builds.yml | 57 ++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index bae5fa5013..657830316d 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml @@ -2961,6 +2961,63 @@ jobs: - run: make install - run: suricata-update -V + windows-msys2-ucrt64-libpcap: + name: Windows MSYS2 UCRT64 (libpcap) + runs-on: windows-latest + needs: [prepare-deps, ubuntu-22-04-dist] + defaults: + run: + shell: msys2 {0} + steps: + - name: Cache ~/.cargo + uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 + with: + path: ~/.cargo/registry + key: cargo-registry + - uses: msys2/setup-msys2@v2 + with: + msystem: ucrt64 + update: true + install: | + autoconf + automake + git + make + mingw-w64-ucrt-x86_64-cbindgen + mingw-w64-ucrt-x86_64-jansson + mingw-w64-ucrt-x86_64-libpcap + mingw-w64-ucrt-x86_64-libtool + mingw-w64-ucrt-x86_64-libyaml + mingw-w64-ucrt-x86_64-pcre2 + mingw-w64-ucrt-x86_64-python-yaml + mingw-w64-ucrt-x86_64-rust + mingw-w64-ucrt-x86_64-toolchain + unzip + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 + - run: git config --global --add safe.directory /__w/suricata/suricata + - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 + with: + name: prep + path: prep + - name: Download suricata.tar.gz + uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 + with: + name: dist + - run: tar xvf suricata-*.tar.gz --strip-components=1 + - run: tar xf prep/suricata-verify.tar.gz + - name: Build + run: | + ./autogen.sh + CFLAGS="-ggdb -Werror" ./configure --enable-warnings --enable-unittests --enable-gccprotect --disable-gccmarch-native --disable-shared + make -j3 + - name: Run + run: | + ./src/suricata --build-info + ./src/suricata -u -l . + python3 ./suricata-verify/run.py -q --debug-failed + - run: make install + - run: suricata-update -V + windows-msys2-mingw64-windivert: name: Windows MSYS2 MINGW64 (WinDivert) runs-on: windows-latest -- 2.47.2