Github Action building with multiple Qt versions

Implemented using the matrix strategy and multiple qt versions
This commit is contained in:
Itay Grudev 2020-01-03 10:35:41 +00:00 committed by GitHub
parent 4e4f310a58
commit 0296d0b61e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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/