From a2547321bb3d7b5e70ec8eedd02a28adb23881d4 Mon Sep 17 00:00:00 2001 From: lns Date: Sun, 17 Apr 2022 11:15:12 +0200 Subject: Added more CCs to Github Actions workflow. Signed-off-by: lns --- .github/workflows/build.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to '.github/workflows/build.yml') 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 -- cgit v1.2.3