summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2022-03-16 23:41:21 (GMT)
committerThomas Haller <thaller@redhat.com>2022-03-16 23:45:51 (GMT)
commitb7256d3da8d7f63b9f0839fe0323da53860ac8a8 (patch)
tree824ba12f61bbe56b00482667913c62bf409417d6 /.github
parent8111933bf5c6761644ef52905efb44dd867812d6 (diff)
downloadlibnl-b7256d3da8d7f63b9f0839fe0323da53860ac8a8.zip
libnl-b7256d3da8d7f63b9f0839fe0323da53860ac8a8.tar.gz
libnl-b7256d3da8d7f63b9f0839fe0323da53860ac8a8.tar.bz2
github: build unit tests also with "clang"
In addition to gcc.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 4a9b675..d486c3f 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -6,6 +6,11 @@ on:
jobs:
ci:
+ strategy:
+ matrix:
+ include:
+ - cc: gcc
+ - cc: clang
runs-on: ubuntu-latest
steps:
- name: Install packages
@@ -18,6 +23,7 @@ jobs:
run: |
set -x
+ export CC="${{ matrix.cc }}"
CFLAGS="-DNL_MORE_ASSERTS=1000 -O2 -Werror -Wall -Wdeclaration-after-statement -Wvla -std=gnu11"
if [ "$CC" = "clang" ]; then
CFLAGS="$CFLAGS -Wno-error=unused-command-line-argument -Wno-error=unused-function"