aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorItay Grudev <itay+89bf5c@grudev.com>2020-01-03 10:35:41 +0000
committerGitHub <noreply@github.com>2020-01-03 10:35:41 +0000
commit0296d0b61e6de73b516320c34459e21a16e9a54b (patch)
tree87308ef1375ef48cbfd1778383c31f760ef62356
parentGithub Actions: Building examples as well (diff)
downloadsingleapplication-0296d0b61e6de73b516320c34459e21a16e9a54b.tar.xz
Github Action building with multiple Qt versions
Implemented using the matrix strategy and multiple qt versions
-rw-r--r--.github/workflows/build-linux-cmake.yml24
1 files 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/