Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski(a)canonical.com>
---
.github/workflows/ci.yml | 10 ++++++++++
ci/debian.sh | 10 ++++++++--
2 files changed, 18 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index e48ee0eb6815..3d9b50251602 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 07b7c9305cdb..8cc4d307cccf 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
--
2.30.2