diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2021-09-18 23:53:41 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2021-09-19 11:30:55 +0200 |
commit | 7829bfe4e6ae433120b2f4bc95d8ab5018f67e90 (patch) | |
tree | fd67303fa8364c9fd3a37884a3d54e6b3b7169da /.github/workflows/build.yml | |
parent | 4fa1694b0514042404ef7efa801addc2f624cf37 (diff) |
CI extended and fixups
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to '.github/workflows/build.yml')
-rw-r--r-- | .github/workflows/build.yml | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4e235b261..6d9cab8d8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,7 +17,7 @@ jobs: fail-fast: true matrix: os: ["ubuntu-latest", "ubuntu-18.04"] - ndpid_gcrypt: ["-DNDPI_WITH_GCRYPT=OFF", ""] + ndpid_gcrypt: ["-DNDPI_WITH_GCRYPT=OFF", "-DNDPI_WITH_GCRYPT=ON"] steps: - uses: actions/checkout@v2 @@ -27,7 +27,7 @@ jobs: if: startsWith(matrix.os, 'ubuntu') run: | sudo apt-get update - sudo apt-get install autoconf automake cmake libtool pkg-config gettext libjson-c-dev flex bison libpcap-dev + sudo apt-get install autoconf automake cmake libtool pkg-config gettext libjson-c-dev flex bison libpcap-dev zlib1g-dev sudo apt-get install gcc-arm-linux-gnueabihf gcc-mingw-w64 libc6-dev - name: Install Ubuntu Prerequisites (libgcrypt) if: startsWith(matrix.os, 'ubuntu') && !startsWith(matrix.ndpid_gcrypt, '-DNDPI_WITH_GCRYPT=OFF') @@ -36,7 +36,22 @@ jobs: - name: Configure nDPI run: | mkdir build && cd build - env CMAKE_C_FLAGS='-Werror' cmake .. -DBUILD_EXAMPLES=ON -DBUILD_NDPI=ON -DENABLE_SANITIZER=ON ${{ matrix.ndpid_gcrypt }} + env CMAKE_C_FLAGS='-Werror' cmake .. -DBUILD_EXAMPLES=ON -DBUILD_NDPI=ON -DENABLE_SANITIZER=ON -DENABLE_ZLIB=ON ${{ matrix.ndpid_gcrypt }} - name: Build nDPI run: | - make -C build all + make -C build all VERBOSE=1 + - name: Test EXEC + run: | + ./build/nDPId-test || test $? -eq 1 + ./build/nDPId -h || test $? -eq 1 + - name: Test DIFF + if: startsWith(matrix.os, 'ubuntu') && !startsWith(matrix.ndpid_gcrypt, '-DNDPI_WITH_GCRYPT=OFF') + run: | + ./test/run_tests.sh ./libnDPI ./build/nDPId-test + - name: Daemon + run: | + make -C ./build daemon VERBOSE=1 + make -C ./build daemon VERBOSE=1 + - name: Dist + run: | + ./scripts/make-dist.sh |