aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>2021-07-09 11:51:45 +0200
committerKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>2021-08-02 14:45:57 +0200
commit6e1617c2e4c9c181753816dc14d4878a10cbe9b3 (patch)
tree995c65a025b5a3496ed7bc35110c98d1a0510180
parentd1b22d1d1907e0707eb42dbd966711c7a20fad82 (diff)
downloadneard-6e1617c2e4c9c181753816dc14d4878a10cbe9b3.tar.gz
ci: add clang builds
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
-rw-r--r--.github/workflows/ci.yml10
-rwxr-xr-xci/debian.sh10
2 files changed, 18 insertions, 2 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index e48ee0e..3d9b502 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -20,6 +20,7 @@ jobs:
fail-fast: false
matrix:
include:
+ # Ubuntu gcc
- container: "ubuntu:hirsute"
env:
CC: gcc
@@ -36,6 +37,15 @@ jobs:
env:
CC: gcc
+ # Ubuntu clang
+ - container: "ubuntu:hirsute"
+ env:
+ CC: clang
+
+ - container: "ubuntu:focal"
+ env:
+ CC: clang
+
container:
image: ${{ matrix.container }}
env: ${{ matrix.env }}
diff --git a/ci/debian.sh b/ci/debian.sh
index 07b7c93..8cc4d30 100755
--- a/ci/debian.sh
+++ b/ci/debian.sh
@@ -19,14 +19,20 @@ tzdata tzdata/Zones/Europe select Berlin
" > /tmp/tzdata-preseed.txt
debconf-set-selections /tmp/tzdata-preseed.txt
+PKGS_CC="build-essential"
+if [ "$CC" = "clang" ]; then
+ PKGS_CC="clang"
+fi
+
+
apt install -y --no-install-recommends \
autoconf \
autoconf-archive \
automake \
- build-essential \
libdbus-1-dev \
libglib2.0-dev \
libnl-3-dev \
libnl-genl-3-dev \
libtool \
-
+ make \
+ $PKGS_CC