diff options
-rw-r--r-- | .github/workflows/build.yml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c273052f0..b2602dc19 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,10 +25,13 @@ jobs: os: ["ubuntu-latest", "ubuntu-18.04"] ndpid_gcrypt: ["-DNDPI_WITH_GCRYPT=OFF", "-DNDPI_WITH_GCRYPT=ON"] ndpid_zlib: ["-DENABLE_ZLIB=OFF", "-DENABLE_ZLIB=ON"] - ndpi_min_version: ["4.5"] + ndpi_min_version: ["4.6"] include: - compiler: "default-cc" os: "ubuntu-latest" + sanitizer: "" + - compiler: "default-cc" + os: "ubuntu-latest" sanitizer: "-DENABLE_SANITIZER=ON" - compiler: "clang-12" os: "ubuntu-latest" @@ -71,6 +74,10 @@ jobs: - name: Build nDPId run: | make -C build all VERBOSE=1 + - name: Build single nDPId executable (invoke CC directly) + if: !startsWith(matrix.sanitizer, '-DENABLE_SANITIZER') && startsWith(matrix.ndpid_gcrypt, '-DNDPI_WITH_GCRYPT=OFF') && startsWith(matrix.ndpid_zlib, '-DENABLE_ZLIB=ON') + run: | + cc nDPId.c utils.c -I./build/libnDPI/include/ndpi -I. -I./dependencies -I./dependencies/jsmn -I./dependencies/uthash/include -o /tmp/a.out -lpcap ./build/libnDPI/lib/libndpi.a -pthread -lm -lz - name: Test EXEC run: | ./build/nDPId-test || test $? -eq 1 |