From 4f06733ceaa2f8d79cc8352afcc3fcfa4b234d0a Mon Sep 17 00:00:00 2001 From: w3lld1 <42353747+w3lld1@users.noreply.github.com> Date: Wed, 12 Aug 2026 00:41:55 +0200 Subject: [PATCH] ci: test builds with GCC and Clang --- .github/workflows/ci.yaml | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 936a5af1..3fec8e48 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -2,10 +2,22 @@ name: CI on: [push, pull_request] jobs: - test_musl_gcc: - name: "Test with with GCC/musl/libstdc++/BFD on Alpine Linux" + test_musl: + name: "Test with ${{ matrix.compiler.name }}/musl/libstdc++/BFD on Alpine Linux" runs-on: ubuntu-latest container: alpine:latest + strategy: + fail-fast: false + matrix: + compiler: + - name: GCC + packages: g++ + cc: gcc + cxx: g++ + - name: Clang + packages: g++ clang21 + cc: clang-21 + cxx: clang++-21 steps: - name: Add testing repository run: echo 'http://dl-cdn.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories # only needed for wayfire-dev @@ -14,7 +26,7 @@ jobs: run: | apk --no-cache add \ git \ - g++ \ + ${{ matrix.compiler.packages }} \ binutils \ pkgconf \ meson \ @@ -44,6 +56,9 @@ jobs: path: wf-shell - name: Build + env: + CC: ${{ matrix.compiler.cc }} + CXX: ${{ matrix.compiler.cxx }} run: | cd wf-shell meson setup build --prefix=/usr