From 5f2524b92df07f38ec4785cc8431a34dc63d0cba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole-Andr=C3=A9=20Rodlie?= Date: Sat, 3 Feb 2024 21:58:46 +0100 Subject: [PATCH] Update c-cpp.yml --- .github/workflows/c-cpp.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 3878d4f..59f581a 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -5,17 +5,18 @@ on: [push, pull_request] jobs: build: - runs-on: ubuntu-22.04 + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-20.04, ubuntu-22.04] steps: - uses: actions/checkout@v3 - - name: Dependencies - run: sudo apt-get install tree cmake qtbase5-dev libxss-dev libxrandr-dev - - name: Build + - name: Install Dependencies + run: sudo apt update && sudo apt install cmake qtbase5-dev libxss-dev libxrandr-dev + - name: Build and Package run: | - export CWD=`pwd` - mkdir $CWD/build - cd $CWD/build + mkdir build && cd build cmake -DCMAKE_INSTALL_PREFIX=/usr -DSERVICE_GROUP=plugdev -DCMAKE_BUILD_TYPE=Release .. make -j2 cpack -G DEB