From 233b5754a250782717f72e9a0fb5697c52f64e2c Mon Sep 17 00:00:00 2001 From: Christian Duvholt Date: Fri, 20 Sep 2024 14:21:28 +0200 Subject: [PATCH] Matrix configuration (os, libsigc++) for CI --- .github/workflows/build.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e67b89f..b716679 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,8 +4,17 @@ on: [push] jobs: build: - name: Linux Latest x64 - runs-on: ubuntu-24.04 + strategy: + matrix: + os: [ubuntu-22.04, ubuntu-24.04] + libsigcpp: ["libsigc++-2.0-dev"] + include: + # libsigc++-3.0 is not available on ubuntu 22.04 + - os: ubuntu-24.04 + libsigcpp: "libsigc++-3.0-dev" + runs-on: ${{ matrix.os }} + + name: Build on ${{ matrix.os }} with ${{ matrix.libsigcpp }} steps: - uses: actions/checkout@v2 @@ -15,7 +24,7 @@ jobs: - name: Installing system libs run: | sudo apt update - sudo apt install libkf5plasma-dev extra-cmake-modules qtbase5-dev qtdeclarative5-dev libsigc++-3.0-dev libjsoncpp-dev i3-wm + sudo apt install libkf5plasma-dev extra-cmake-modules qtbase5-dev qtdeclarative5-dev ${{matrix.libsigcpp}} libjsoncpp-dev i3-wm - name: Configure run: cmake -DCMAKE_INSTALL_PREFIX=$(kf5-config --prefix) -DCI_ERRORS=on -B build .