From 2fca31ccc14c0655a21bdc9058096107cd38a42c Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Mon, 9 Aug 2021 16:14:37 +0200 Subject: Fixed Mingw64 build. * adapted to SonarCloud-CI workflow * removed broken and incomplete Windows example (tested on VS2017/VS2019) * removed unnecessary include (e.g. pthread.h for the library which does not make use of it) Signed-off-by: Toni Uhlig --- .github/workflows/build.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2f17d05d0..d8d69344b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,7 +14,7 @@ jobs: with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - name: Install dependencies - run: sudo apt-get install libpcap-dev libjson-c-dev libgcrypt20-dev gcc-arm-linux-gnueabihf + run: sudo apt-get install build-essential libc6-dev libpcap-dev libjson-c-dev libgcrypt20-dev gcc-arm-linux-gnueabihf gcc-mingw-w64 - name: Configure run: env CFLAGS='-Werror' ./autogen.sh - name: Build @@ -24,6 +24,10 @@ jobs: - name: Test UNIT run: ./tests/unit/unit - name: Configure ARM - run: env CFLAGS='-Werror' ./autogen.sh --host=arm-linux-gnueabihf + run: make distclean && env CFLAGS='-Werror' ./autogen.sh --host=arm-linux-gnueabihf --with-only-libndpi - name: Build ARM run: make all + - name: Configure Mingw-w64 + run: make distclean && ./autogen.sh --host=x86_64-w64-mingw32 + - name: Build Mingw-w64 + run: make all -- cgit v1.2.3