From 0296d0b61e6de73b516320c34459e21a16e9a54b Mon Sep 17 00:00:00 2001 From: Itay Grudev Date: Fri, 3 Jan 2020 10:35:41 +0000 Subject: [PATCH] Github Action building with multiple Qt versions Implemented using the matrix strategy and multiple qt versions --- .github/workflows/build-linux-cmake.yml | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build-linux-cmake.yml b/.github/workflows/build-linux-cmake.yml index f7d5b7a..2268508 100644 --- a/.github/workflows/build-linux-cmake.yml +++ b/.github/workflows/build-linux-cmake.yml @@ -5,6 +5,10 @@ on: [push, pull_request] jobs: build: + strategy: + matrix: + qt_version: [5.11, 5.12, 5.13, 5.14] + runs-on: ubuntu-latest steps: @@ -13,7 +17,7 @@ jobs: - name: Install Qt uses: jurplel/install-qt-action@v2.2.1 with: - version: 5.12.6 + version: ${{ matrix.qt_version }} - name: cmake run: cmake . @@ -22,25 +26,13 @@ jobs: run: make - name: Build example - basic (cmake) - run: cmake . - working-directory: examples/basic/ - - - name: Build example - basic (make) - run: make + run: cmake . && make working-directory: examples/basic/ - name: Build example - calculator (cmake) - run: cmake . - working-directory: examples/calculator/ - - - name: Build example - calculator (make) - run: make + run: cmake . && make working-directory: examples/calculator/ - name: Build example - sending_arguments (cmake) - run: cmake . - working-directory: examples/sending_arguments/ - - - name: Build example - sending_arguments (make) - run: make + run: cmake . && make working-directory: examples/sending_arguments/