[linux-nfc] [neard][PATCH 16/16] ci: add clang builds
Krzysztof Kozlowski <[email protected]>
| Newsgroups | org.01.lists.linux-nfc,dev.linux.lists.oe-linux-nfc |
|---|---|
| Message-ID | <[email protected]> |
Signed-off-by: Krzysztof Kozlowski <[email protected]> --- .github/workflows/ci.yml | 10 ++++++++++ ci/debian.sh | 9 +++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e746eb67df29..fb322381e7f5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,6 +16,7 @@ jobs: fail-fast: false matrix: include: + # Ubuntu gcc - container: "ubuntu:hirsute" env: CC: gcc @@ -32,6 +33,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 35eb3681f059..1d31d8364982 100755 --- a/ci/debian.sh +++ b/ci/debian.sh @@ -20,13 +20,18 @@ 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 \ automake \ - build-essential \ libdbus-1-dev \ libglib2.0-dev \ libnl-3-dev \ libnl-genl-3-dev \ libtool \ - + $PKGS_CC -- 2.27.0 _______________________________________________ Linux-nfc mailing list -- [email protected] To unsubscribe send an email to [email protected] %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s