diff options
author | Toni <matzeton@googlemail.com> | 2021-08-18 12:34:16 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-18 11:34:16 +0200 |
commit | 8d0c7b1faeed1e3df6e6f90658559f373bbf63fb (patch) | |
tree | 8ef500067f538f23652986c7b844f299a0e92ef3 /.github/workflows/build.yml | |
parent | 677b513f70ade895ef28be744245803238100489 (diff) |
Fixed Mingw64 build, SonerCloud-CI and more. (#1273)
* Added ARM build and unit test run for SonarCloud-CI.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
* 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 <matzeton@googlemail.com>
Diffstat (limited to '.github/workflows/build.yml')
-rw-r--r-- | .github/workflows/build.yml | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8bd06cddd..d8d69344b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,10 +14,20 @@ 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 + 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: ./autogen.sh + run: env CFLAGS='-Werror' ./autogen.sh - name: Build run: make all - - name: Test + - name: Test DIFF run: ./tests/do.sh + - name: Test UNIT + run: ./tests/unit/unit + - name: Configure ARM + 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 |