4
4
# Reusable from push_pull.yml
5
5
workflow_call :
6
6
inputs :
7
- qt_version :
8
- type : string
9
- description : Build with this Qt version
10
- default : ' 5'
11
- required : false
12
7
build_type :
13
8
type : string
14
9
description : The build type (debug or release)
@@ -33,21 +28,15 @@ jobs:
33
28
fail-fast : false
34
29
matrix :
35
30
os : [
36
- { distribution: debian, codename: buster, description: Debian Buster (x86_64), architecture: [ amd64, linux/amd64 ], platform: x11 },
37
- { distribution: debian, codename: buster, description: Debian Buster (Raspberry Pi 1 & Zero 1), architecture: [ armv6, linux/arm/v6 ], platform: rpi },
38
- { distribution: debian, codename: buster, description: Debian Buster (Raspberry Pi 2), architecture: [ armv7, linux/arm/v7 ], platform: rpi },
39
- { distribution: debian, codename: buster, description: Debian Buster (Raspberry Pi 3/4/5 & Zero 2), architecture: [ arm64, linux/arm64 ], platform: rpi },
40
- { distribution: debian, codename: bullseye, description: Debian Bullseye (x86_64), architecture: [ amd64, linux/amd64 ], platform: x11 },
41
- { distribution: debian, codename: bullseye, description: Debian Bullseye (Raspberry Pi 2), architecture: [ armv7, linux/arm/v7 ], platform: rpi },
42
- { distribution: debian, codename: bullseye, description: Debian Bullseye (Raspberry Pi 3/4/5 & Zero 2), architecture: [ arm64, linux/arm64 ], platform: rpi }
31
+ { distribution: debian, codename: bullseye, description: Debian Bullseye (x86_64), architecture: [ amd64, linux/amd64 ], platform: x11, qt_version: '6' },
32
+ { distribution: debian, codename: bullseye, description: Debian Bullseye (Raspberry Pi 1 & Zero 1), architecture: [ armv6, linux/arm/v6 ], platform: rpi, qt_version: '5' }, # Qt6 not available on Debian Bullseye (armv6)
33
+ { distribution: debian, codename: bullseye, description: Debian Bullseye (Raspberry Pi 2), architecture: [ armv7, linux/arm/v7 ], platform: rpi, qt_version: '6' },
34
+ { distribution: debian, codename: bullseye, description: Debian Bullseye (Raspberry Pi 3/4/5 & Zero 2), architecture: [ arm64, linux/arm64 ], platform: rpi, qt_version: '6' },
35
+ { distribution: debian, codename: bookworm, description: Debian Bookworm (x86_64), architecture: [ amd64, linux/amd64 ], platform: x11, qt_version: '6'},
36
+ { distribution: debian, codename: bookworm, description: Debian Bookworm (Raspberry Pi 1 & Zero 1), architecture: [ armv6, linux/arm/v6 ], platform: rpi, qt_version: '6' },
37
+ { distribution: debian, codename: bookworm, description: Debian Bookworm (Raspberry Pi 2), architecture: [ armv7, linux/arm/v7 ], platform: rpi, qt_version: '6' },
38
+ { distribution: debian, codename: bookworm, description: Debian Bookworm (Raspberry Pi 3/4/5 & Zero 2), architecture: [ arm64, linux/arm64 ], platform: rpi, qt_version: '6' }
43
39
]
44
- isQt5 :
45
- - ${{ inputs.qt_version == '5' }}
46
- exclude :
47
- - isQt5 : true
48
- os : { distribution: debian, codename: bullseye }
49
- - isQt5 : false
50
- os : { distribution: debian, codename: buster }
51
40
52
41
steps :
53
42
- name : ⬇ Checkout
@@ -76,14 +65,14 @@ jobs:
76
65
cp -a /source/build/install/. /deploy/ 2>/dev/null"
77
66
env :
78
67
DOCKER_IMAGE : ${{ matrix.os.distribution }}
79
- DOCKER_TAG : ${{ matrix.os.codename }}${{ inputs .qt_version == '6' && '-qt6' || '' }}
68
+ DOCKER_TAG : ${{ matrix.os.codename }}${{ matrix.os .qt_version == '6' && '-qt6' || '' }}
80
69
ENTRYPOINT : ${{ matrix.os.architecture[0] != 'amd64' && '--entrypoint /usr/bin/env' || '' }}
81
70
82
71
- name : 📦 Upload
83
72
if : ${{ inputs.upload_artifact }}
84
73
uses : actions/upload-artifact@v4
85
74
with :
86
- name : ${{ format('{0}_{1}-{2}-qt{3}-{4}', matrix.os.distribution, matrix.os.codename, matrix.os.architecture[0], inputs .qt_version, inputs.build_type) }}
75
+ name : ${{ format('{0}_{1}-{2}-qt{3}-{4}', matrix.os.distribution, matrix.os.codename, matrix.os.architecture[0], matrix.os .qt_version, inputs.build_type) }}
87
76
path : deploy/*
88
77
89
78
# #####################
@@ -114,7 +103,7 @@ jobs:
114
103
- name : 📥 Install Qt
115
104
uses : jurplel/install-qt-action@v4
116
105
with :
117
- version : ${{ inputs.qt_version == '6' && '6 .8' || '5.15.*' }}
106
+ version : ' 6 .8'
118
107
target : ' desktop'
119
108
cache : ' true'
120
109
cache-key-prefix : ' cache-qt-macos'
@@ -129,7 +118,7 @@ jobs:
129
118
if : ${{ inputs.upload_artifact }}
130
119
uses : actions/upload-artifact@v4
131
120
with :
132
- name : ${{ format('macos-{0}-qt {1}-{2} ', matrix.architecture, inputs.qt_version , inputs.build_type) }}
121
+ name : ${{ format('macos-{0}-qt6- {1}', matrix.architecture, inputs.build_type) }}
133
122
path : build/install/*
134
123
135
124
# #####################
@@ -145,11 +134,6 @@ jobs:
145
134
fail-fast : false
146
135
matrix :
147
136
architecture : [ arm64, x64 ]
148
- isQt5 :
149
- - ${{ inputs.qt_version == '5' }}
150
- exclude :
151
- - isQt5 : true
152
- architecture : arm64
153
137
154
138
steps :
155
139
- name : ⬇ Checkout
@@ -164,21 +148,20 @@ jobs:
164
148
submodules : recursive
165
149
path : hyperion
166
150
151
+ - name : 📥 Install Python
152
+ uses : actions/setup-python@v5
153
+ with :
154
+ python-version : ' 3.13.3'
155
+ architecture : ${{ matrix.architecture }}
156
+
167
157
- name : 📥 Install Qt
168
- # If the following PR is merged, you can switch back to jurplel/install-qt-action
169
- # https://github.com/jurplel/install-qt-action/pull/273
170
- uses : jdpurcell/install-qt-action@v5
158
+ uses : jurplel/install-qt-action@v4
171
159
with :
172
- version : ${{ inputs.qt_version == '6' && '6 .8.*' || '5.15.*' }}
160
+ version : ' 6 .8.*'
173
161
target : ' desktop'
174
162
cache : ' true'
175
163
cache-key-prefix : ' cache-qt-windows'
176
-
177
- - name : 📥 Install Python
178
- uses : actions/setup-python@v5
179
- with :
180
- python-version : 3.13
181
- architecture : ${{ matrix.architecture }}
164
+ setup-python : ' false'
182
165
183
166
- name : 📥 Install latest CMake and Ninja
184
167
uses : lukka/get-cmake@latest
@@ -202,5 +185,5 @@ jobs:
202
185
if : ${{ inputs.upload_artifact }}
203
186
uses : actions/upload-artifact@v4
204
187
with :
205
- name : ${{ format('windows-{0}-qt {1}-{2} ', matrix.architecture, inputs.qt_version , env.BUILD_TYPE) }}
188
+ name : ${{ format('windows-{0}-qt6- {1}', matrix.architecture, env.BUILD_TYPE) }}
206
189
path : build/install/*
0 commit comments