.github/workflows/build.yml: add clang build

Due to linker failures, we need to build our own libfmt and
googletest.
This commit is contained in:
Max Kellermann 2024-07-05 17:48:40 +02:00
parent 2d918bf2c9
commit 608c2a8c93
1 changed files with 11 additions and 1 deletions

View File

@ -33,18 +33,26 @@ jobs:
build-linux: build-linux:
strategy: strategy:
matrix: matrix:
compiler: [gcc14, gcc10] compiler: [gcc14, gcc10, clang]
include: include:
- compiler: gcc14 - compiler: gcc14
os: ubuntu-24.04 os: ubuntu-24.04
cc: gcc-14 cc: gcc-14
cxx: g++-14 cxx: g++-14
packages: g++-14 packages: g++-14
meson_options:
- compiler: gcc10 - compiler: gcc10
os: ubuntu-24.04 os: ubuntu-24.04
cc: gcc-10 cc: gcc-10
cxx: g++-10 cxx: g++-10
packages: g++-10 packages: g++-10
meson_options:
- compiler: clang
os: ubuntu-24.04
cc: clang
cxx: clang++
packages: clang
meson_options: --force-fallback-for=fmt,gtest
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
@ -106,6 +114,7 @@ jobs:
-Dsystemd=enabled \ -Dsystemd=enabled \
-Dpcre=enabled \ -Dpcre=enabled \
--wrap-mode nofallback \ --wrap-mode nofallback \
${{ matrix.meson_options }} \
output/full output/full
- name: Build - name: Build
@ -132,6 +141,7 @@ jobs:
-Dhttpd=false -Dpipe=false -Drecorder=false \ -Dhttpd=false -Dpipe=false -Drecorder=false \
-Dsnapcast=false \ -Dsnapcast=false \
--wrap-mode nofallback \ --wrap-mode nofallback \
${{ matrix.meson_options }} \
output/mini output/mini
- name: Build Mini - name: Build Mini