Matrix configuration (os, libsigc++) for CI #33
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build plasmoid plugin | |
on: [push] | |
jobs: | |
build: | |
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 | |
with: | |
submodules: recursive | |
- name: Installing system libs | |
run: | | |
sudo apt update | |
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 . | |
- name: Build | |
run: make -j $(nproc) -C build | |
- name: Install | |
run: sudo make -C build install |