Skip to content

Commit 106e09e

Browse files
jasonishvictorjulien
authored andcommitted
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.
1 parent f35a56f commit 106e09e

1 file changed

Lines changed: 57 additions & 0 deletions

File tree

.github/workflows/builds.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2961,6 +2961,63 @@ jobs:
29612961
- run: make install
29622962
- run: suricata-update -V
29632963

2964+
windows-msys2-ucrt64-libpcap:
2965+
name: Windows MSYS2 UCRT64 (libpcap)
2966+
runs-on: windows-latest
2967+
needs: [prepare-deps, ubuntu-22-04-dist]
2968+
defaults:
2969+
run:
2970+
shell: msys2 {0}
2971+
steps:
2972+
- name: Cache ~/.cargo
2973+
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57
2974+
with:
2975+
path: ~/.cargo/registry
2976+
key: cargo-registry
2977+
- uses: msys2/setup-msys2@v2
2978+
with:
2979+
msystem: ucrt64
2980+
update: true
2981+
install: |
2982+
autoconf
2983+
automake
2984+
git
2985+
make
2986+
mingw-w64-ucrt-x86_64-cbindgen
2987+
mingw-w64-ucrt-x86_64-jansson
2988+
mingw-w64-ucrt-x86_64-libpcap
2989+
mingw-w64-ucrt-x86_64-libtool
2990+
mingw-w64-ucrt-x86_64-libyaml
2991+
mingw-w64-ucrt-x86_64-pcre2
2992+
mingw-w64-ucrt-x86_64-python-yaml
2993+
mingw-w64-ucrt-x86_64-rust
2994+
mingw-w64-ucrt-x86_64-toolchain
2995+
unzip
2996+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
2997+
- run: git config --global --add safe.directory /__w/suricata/suricata
2998+
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093
2999+
with:
3000+
name: prep
3001+
path: prep
3002+
- name: Download suricata.tar.gz
3003+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093
3004+
with:
3005+
name: dist
3006+
- run: tar xvf suricata-*.tar.gz --strip-components=1
3007+
- run: tar xf prep/suricata-verify.tar.gz
3008+
- name: Build
3009+
run: |
3010+
./autogen.sh
3011+
CFLAGS="-ggdb -Werror" ./configure --enable-warnings --enable-unittests --enable-gccprotect --disable-gccmarch-native --disable-shared
3012+
make -j3
3013+
- name: Run
3014+
run: |
3015+
./src/suricata --build-info
3016+
./src/suricata -u -l .
3017+
python3 ./suricata-verify/run.py -q --debug-failed
3018+
- run: make install
3019+
- run: suricata-update -V
3020+
29643021
windows-msys2-mingw64-windivert:
29653022
name: Windows MSYS2 MINGW64 (WinDivert)
29663023
runs-on: windows-latest

0 commit comments

Comments
 (0)