Skip to content

Commit 4ccb673

Browse files
committed
build.yaml: Cover both Qt 5 and Qt 6
1 parent 4d63f79 commit 4ccb673

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

.github/workflows/build.yaml

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

41-
name: Build (Linux, ${{ matrix.runs-on }})
49+
name: Build (Linux, ${{ matrix.runs-on }}, Qt ${{ matrix.qt_major }})
4250
runs-on: ${{ matrix.runs-on }}
4351
steps:
4452
- name: 'Install build dependencies'
@@ -49,8 +57,7 @@ jobs:
4957
build-essential \
5058
libapr1-dev \
5159
libsvn-dev \
52-
${{ matrix.qt }} \
53-
qtbase5-dev \
60+
${{ matrix.qt_packages }} \
5461
subversion
5562
5663
- name: 'Checkout Git branch'
@@ -59,8 +66,10 @@ jobs:
5966
submodules: true
6067

6168
- name: 'Configure'
69+
env:
70+
QMAKE: ${{ matrix.qt_qmake }}
6271
run: |-
63-
qmake
72+
${QMAKE}
6473
6574
- name: 'Build'
6675
run: |-

0 commit comments

Comments
 (0)