summaryrefslogtreecommitdiff
path: root/.github/workflows/build.yml
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2023-02-23 02:01:18 +0100
committerToni Uhlig <matzeton@googlemail.com>2023-02-27 02:01:18 +0100
commitaafc72a44baf1169f71167367bd7d8663e6445d7 (patch)
tree75cc365f3a982beae74b266f8cb8a645530b1bfb /.github/workflows/build.yml
parent0a959993bc3b448e28f780f1388a6064f0a039a3 (diff)
Github Actions: enable build against libnDPI-4.6, build nDPId executable from CLI
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to '.github/workflows/build.yml')
-rw-r--r--.github/workflows/build.yml9
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