Skip to content

Commit c45d434

Browse files
committed
build.yaml: Cover both Qt 5 and Qt 6
1 parent a1bfa78 commit c45d434

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

.github/workflows/build.yaml

+19-6
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,23 @@ jobs:
3434
matrix:
3535
include:
3636
- runs-on: ubuntu-24.04
37-
qt: qt5-qmake
37+
qt_major: 5
38+
qt_qmake: qmake
39+
qt_packages: qt5-qmake qtbase5-dev
40+
- runs-on: ubuntu-24.04
41+
qt_major: 6
42+
qt_qmake: qmake6
43+
qt_packages: qmake6 qt6-base-dev qt6-5compat-dev
44+
- runs-on: ubuntu-22.04
45+
qt_major: 5
46+
qt_qmake: qmake
47+
qt_packages: qt5-qmake qtbase5-dev
3848
- runs-on: ubuntu-22.04
39-
qt: qt5-qmake
49+
qt_major: 6
50+
qt_qmake: qmake6
51+
qt_packages: qmake6 qt6-base-dev qt6-5compat-dev
4052

41-
name: Build (Linux, ${{ matrix.runs-on }})
53+
name: Build (Linux, ${{ matrix.runs-on }}, Qt ${{ matrix.qt_major }})
4254
runs-on: ${{ matrix.runs-on }}
4355
steps:
4456
- name: 'Install build dependencies'
@@ -49,8 +61,7 @@ jobs:
4961
build-essential \
5062
libapr1-dev \
5163
libsvn-dev \
52-
${{ matrix.qt }} \
53-
qtbase5-dev \
64+
${{ matrix.qt_packages }} \
5465
subversion
5566
5667
- name: 'Checkout Git branch'
@@ -59,8 +70,10 @@ jobs:
5970
submodules: true
6071

6172
- name: 'Configure'
73+
env:
74+
QMAKE: ${{ matrix.qt_qmake }}
6275
run: |-
63-
qmake
76+
${QMAKE}
6477
6578
- name: 'Build'
6679
run: |-

0 commit comments

Comments
 (0)