summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlns <matzeton@googlemail.com>2022-04-17 11:15:12 +0200
committerlns <matzeton@googlemail.com>2022-04-17 11:28:59 +0200
commita2547321bb3d7b5e70ec8eedd02a28adb23881d4 (patch)
tree08b6daee256f73ce1f194f256ea4ac37c94b772d
parentc283b89afda98fdcee81fe1b9634f10af1077878 (diff)
Added more CCs to Github Actions workflow.
Signed-off-by: lns <matzeton@googlemail.com>
-rw-r--r--.github/workflows/build.yml13
1 files changed, 11 insertions, 2 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 3b675391d..6c9ba7e63 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -19,6 +19,15 @@ 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"]
+ include:
+ - compiler: "default-cc"
+ os: "ubuntu-latest"
+ - compiler: "clang-12"
+ os: "ubuntu-latest"
+ - compiler: "gcc-10"
+ os: "ubuntu-latest"
+ - compiler: "gcc-7"
+ os: "ubuntu-latest"
steps:
- uses: actions/checkout@v2
@@ -29,7 +38,7 @@ jobs:
run: |
sudo apt-get update
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 lcov
+ sudo apt-get install ${{ matrix.compiler }} lcov
- name: Install Ubuntu Prerequisites (libgcrypt)
if: startsWith(matrix.os, 'ubuntu') && startsWith(matrix.ndpid_gcrypt, '-DNDPI_WITH_GCRYPT=ON')
run: |
@@ -41,7 +50,7 @@ jobs:
- name: Configure nDPI
run: |
mkdir build && cd build
- env CMAKE_C_FLAGS='-Werror' cmake .. -DENABLE_COVERAGE=ON -DBUILD_EXAMPLES=ON -DBUILD_NDPI=ON -DENABLE_SANITIZER=ON ${{ matrix.ndpid_zlib }} ${{ matrix.ndpid_gcrypt }}
+ 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
run: |
make -C build all VERBOSE=1