diff options
author | lns <matzeton@googlemail.com> | 2022-04-25 00:20:18 +0200 |
---|---|---|
committer | lns <matzeton@googlemail.com> | 2022-04-25 00:45:54 +0200 |
commit | 0385653023d21ac693ecc4d47070a244739507c2 (patch) | |
tree | b93b18ba5e49965fd672cde158d4421df249f602 /.github | |
parent | a46fc4153d0dd6b400c49a8f6d1e794f0d940ab7 (diff) |
Github Actions: Build nDPId against lowest supported libnDPI release (4.2)
Signed-off-by: lns <matzeton@googlemail.com>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build.yml | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6c9ba7e63..79e82ab5a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -47,11 +47,11 @@ jobs: if: startsWith(matrix.os, 'ubuntu') && startsWith(matrix.ndpid_zlib, '-DENABLE_ZLIB=ON') run: | sudo apt-get install zlib1g-dev - - name: Configure nDPI + - name: Configure nDPId run: | mkdir build && cd build env CMAKE_C_COMPILER=${{ matrix.compiler }} CMAKE_C_FLAGS='-Werror' cmake .. -DENABLE_COVERAGE=ON -DBUILD_EXAMPLES=ON -DBUILD_NDPI=ON -DENABLE_SANITIZER=ON ${{ matrix.ndpid_zlib }} ${{ matrix.ndpid_gcrypt }} - - name: Build nDPI + - name: Build nDPId run: | make -C build all VERBOSE=1 - name: Test EXEC @@ -75,3 +75,11 @@ jobs: - name: CPack DEB run: | cd ./build && cpack -G DEB && cd .. +# enable this block after the next libnDPI release +# - name: Build against libnDPI-4.3 +# run: | +# mkdir build-local-ndpi && cd build-local-ndpi +# wget 'https://github.com/ntop/nDPI/archive/refs/tags/4.3.tar.gz' +# tar -xzvf 4.3.tar.gz && cd nDPI-4.3 && ./autogen.sh --prefix=/usr --with-only-libndpi CC=${{ matrix.compiler }} CXX=false CFLAGS='-Werror' && sudo make install && cd .. +# env CMAKE_C_COMPILER=${{ matrix.compiler }} CMAKE_C_FLAGS='-Werror' cmake .. -DENABLE_COVERAGE=ON -DBUILD_EXAMPLES=ON -DBUILD_NDPI=OFF -DENABLE_SANITIZER=ON ${{ matrix.ndpid_zlib }} +# make all VERBOSE=1 |