Skip to content

Commit

Permalink
github-actions: Add clang build
Browse files Browse the repository at this point in the history
  • Loading branch information
cwendling committed Nov 14, 2023
1 parent 88bcca2 commit a2f0a4f
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ env:
jobs:
build:
name: Build on ${{matrix.container}} with in-process=${{matrix.in-process}}
name: Build on ${{matrix.container}} with in-process=${{matrix.in-process}} (using ${{matrix.cc}})
runs-on: ubuntu-latest
container: ${{matrix.container}}

Expand All @@ -101,11 +101,23 @@ jobs:
matrix:
in-process: [all, none]
container: ['debian:testing', 'ubuntu:rolling', 'archlinux:latest']
cc: ['gcc']
cxx: ['g++']
include:
# test with clang on archlinux:latest
- container: 'archlinux:latest'
cc: 'clang'
cxx: 'clang++'
in-process: all
- container: 'archlinux:latest'
cc: 'clang'
cxx: 'clang++'
in-process: none

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

Expand Down

0 comments on commit a2f0a4f

Please sign in to comment.