From 1a22c6d6fa9e0fa4240fddccb165b536e14cfa1e Mon Sep 17 00:00:00 2001 From: Colomban Wendling Date: Tue, 14 Nov 2023 19:33:08 +0100 Subject: [PATCH] github-actions: Add clang build --- .github/workflows/build.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 89393fbde..aa9dbc263 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -45,6 +45,7 @@ env: libgirepository1.0-dev DEB_BUILD_DEPS: | ccache + clang autoconf-archive autopoint gir1.2-freedesktop @@ -62,7 +63,6 @@ env: gobject-introspection # TODO DEB_SCAN_BUILD_DEPS: | - clang clang-tools # Useful URL: https://git.archlinux.org/svntogit/community.git/tree/mate-panel ARCH_BUILD_DEPS: | @@ -101,11 +101,17 @@ jobs: matrix: in-process: [all, none] container: ['debian:testing', 'ubuntu:rolling', 'archlinux:latest'] + cc: ['gcc'] + cxx: ['g++'] + include: + - container: 'debian:testing' + cc: 'clang' + cxx: 'clang++' env: # Speed up build with ccache - CC: ccache gcc - CXX: ccache g++ + CC: ccache ${{matrix.cc}} + CXX: ccache ${{matrix.cxx}} # root install path for the mate-desktop dependency MATE_DESKTOP_INSTALL_PATH: ${{github.workspace}}/mate-desktop-install