-
Notifications
You must be signed in to change notification settings - Fork 234
319 lines (281 loc) · 9.91 KB
/
qt-zlib.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
on:
push:
branches:
- master
- feature/*
pull_request:
name: qt-zlib
env:
BUILD_TYPE: Release
jobs:
use-qt-zlib-ubuntu:
if: true
runs-on: ubuntu-22.04
name: use-qt-zlib-ubuntu-${{ matrix.qt_version }}
container: ghcr.io/cen1/qt:${{ matrix.qt_version }}
strategy:
fail-fast: false
matrix:
qt_version: [ 5.15.12, 6.4.3, 6.6.2 ]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Configure CMake
run: cmake -DCMAKE_BUILD_TYPE="${{env.BUILD_TYPE}}" -DBUILD_SHARED_LIBS=OFF -DQUAZIP_ENABLE_TESTS=ON -DQUAZIP_USE_QT_ZLIB=ON -DCMAKE_PREFIX_PATH="/usr/local/Qt-${{ matrix.qt_version }}" -B build
- name: Build
run: cmake --build build --config ${{env.BUILD_TYPE}}
- name: Run tests
working-directory: build
run: ctest --verbose -C Release
use-qt6-zlib-windows:
if: true
runs-on: windows-latest
name: use-qt6-zlib-windows-${{ matrix.qt_version }}
strategy:
fail-fast: false
matrix:
qt_version: [ 6.6.2 ]
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: TheMrMilchmann/setup-msvc-dev@v3
with:
arch: x64
- name: Restore Qt build cache
id: cache-qt-restore
uses: actions/cache@v4
with:
key: windows-qt-${{ matrix.qt_version }}
path: qt-everywhere-src-${{ matrix.qt_version }}
- name: Restore Qt zip
if: steps.cache-qt-restore.outputs.cache-hit != 'true'
id: cache-qt-zip-restore
uses: actions/cache@v4
with:
key: windows-qt-${{ matrix.qt_version }}-zip
path: qt-everywhere-src-${{ matrix.qt_version }}.zip
- name: Download Qt 6
if: steps.cache-qt-restore.outputs.cache-hit != 'true' && steps.cache-qt-zip-restore.outputs.cache-hit != 'true'
shell: bash
run: |
curl https://ftp.fau.de/qtproject/archive/qt/6.6/${{ matrix.qt_version }}/single/qt-everywhere-src-${{ matrix.qt_version }}.zip --output qt-everywhere-src-${{ matrix.qt_version }}.zip
- name: Save Qt zip
if: steps.cache-qt-restore.outputs.cache-hit != 'true' && steps.cache-qt-zip-restore.outputs.cache-hit != 'true'
id: cache-qt-zip-save
uses: actions/cache/save@v4
with:
path: qt-everywhere-src-${{ matrix.qt_version }}.zip
key: windows-qt-${{ matrix.qt_version }}-zip
- name: Extract Qt zip
if: steps.cache-qt-restore.outputs.cache-hit != 'true'
shell: bash
run: |
unzip -q qt-everywhere-src-${{ matrix.qt_version }}.zip
ls -la
- name: Configure Qt
if: steps.cache-qt-restore.outputs.cache-hit != 'true'
shell: cmd
working-directory: qt-everywhere-src-${{ matrix.qt_version }}
run: ./configure.bat -prefix "${{github.workspace}}/Qt" -qt-zlib \
-static \
-opensource \
-confirm-license \
-optimize-size \
-nomake examples \
-nomake tests \
-no-dbus \
-no-icu \
-no-fontconfig \
-no-opengl \
-no-openssl \
-no-gui \
-skip qtconnectivity \
-skip qtdatavis3d \
-skip qtdeclarative \
-skip qtdoc \
-skip qtactiveqt \
-skip qt3d \
-skip qtgraphs \
-skip qtgrpc \
-skip qtimageformats \
-skip qtlanguageserver \
-skip qtlocation \
-skip qthttpserver \
-skip qtmultimedia \
-skip qtopcua \
-skip qtpositioning \
-skip qtremoteobjects \
-skip qtscxml \
-skip qtsensors \
-skip qtserialbus \
-skip qtserialport \
-skip qtshadertools \
-skip qtspeech \
-skip qtsvg \
-skip qttools \
-skip qttranslations \
-skip qtwebchannel \
-skip qtwebengine \
-skip qtwebsockets \
-skip qtwebview \
-skip qtcharts \
-skip qtcoap \
-skip qtlottie \
-skip qtmqtt \
-skip qtnetworkauth \
-skip qtquick3d \
-skip qtquick3dphysics \
-skip qtquickeffectmaker \
-skip qtquicktimeline \
-skip qtvirtualkeyboard \
-skip qtwayland \
-skip qtcanvas3d \
-skip qtgamepad \
-skip qtpurchasing \
-skip qtscript
- name: Build Qt
if: steps.cache-qt-restore.outputs.cache-hit != 'true'
shell: cmd
working-directory: qt-everywhere-src-${{ matrix.qt_version }}
run: cmake --build . --parallel
- name: Cache Qt
if: steps.cache-qt-restore.outputs.cache-hit != 'true'
id: cache-qt
uses: actions/cache/save@v4
with:
path: qt-everywhere-src-${{ matrix.qt_version }}
key: windows-qt-${{ matrix.qt_version }}
- name: Install Qt
shell: cmd
working-directory: qt-everywhere-src-${{ matrix.qt_version }}
run: cmake --install .
- name: Configure CMake
run: cmake -DCMAKE_BUILD_TYPE="${{env.BUILD_TYPE}}" -DQUAZIP_QT_MAJOR_VERSION=6 -DBUILD_SHARED_LIBS=OFF -DQUAZIP_ENABLE_TESTS=ON -DQUAZIP_USE_QT_ZLIB=ON -B "${{github.workspace}}/build" -DCMAKE_PREFIX_PATH="${{github.workspace}}\Qt"
- name: Build
shell: cmd
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: Run tests
shell: cmd
working-directory: ${{github.workspace}}/build
run: ctest --verbose --output-on-failure -C Release
use-qt5-zlib-windows:
if: true
runs-on: windows-latest
name: use-qt5-zlib-windows-${{ matrix.qt_version }}
strategy:
fail-fast: false
matrix:
qt_version: [ 5.15.12 ]
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: TheMrMilchmann/setup-msvc-dev@v3
with:
arch: x64
- name: Restore Qt build cache
id: cache-qt-restore
uses: actions/cache@v4
with:
key: windows-qt-${{ matrix.qt_version }}
path: qt-everywhere-src-${{ matrix.qt_version }}
- name: Restore Qt zip
if: steps.cache-qt-restore.outputs.cache-hit != 'true'
id: cache-qt-zip-restore
uses: actions/cache@v4
with:
key: windows-qt-${{ matrix.qt_version }}-zip
path: qt-everywhere-src-${{ matrix.qt_version }}.zip
- name: Download Qt 5
if: steps.cache-qt-restore.outputs.cache-hit != 'true' && steps.cache-qt-zip-restore.outputs.cache-hit != 'true'
shell: bash
run: |
curl https://ftp.fau.de/qtproject/archive/qt/5.15/${{ matrix.qt_version }}/single/qt-everywhere-opensource-src-${{ matrix.qt_version }}.zip --output qt-everywhere-src-${{ matrix.qt_version }}.zip
- name: Save Qt zip
if: steps.cache-qt-restore.outputs.cache-hit != 'true' && steps.cache-qt-zip-restore.outputs.cache-hit != 'true'
id: cache-qt-zip-save
uses: actions/cache/save@v4
with:
path: qt-everywhere-src-${{ matrix.qt_version }}.zip
key: windows-qt-${{ matrix.qt_version }}-zip
- name: Extract Qt zip
if: steps.cache-qt-restore.outputs.cache-hit != 'true'
shell: bash
run: |
unzip -q qt-everywhere-src-${{ matrix.qt_version }}.zip
ls -la
- name: Configure Qt
if: steps.cache-qt-restore.outputs.cache-hit != 'true'
shell: cmd
working-directory: qt-everywhere-src-${{ matrix.qt_version }}
run: ./configure.bat -prefix "${{github.workspace}}/Qt" -qt-zlib ^
-static ^
-opensource ^
-confirm-license ^
-optimize-size ^
-nomake examples ^
-nomake tests ^
-no-dbus ^
-no-fontconfig ^
-no-opengl ^
-no-openssl ^
-no-gui ^
-skip qtconnectivity ^
-skip qtdatavis3d ^
-skip qtdeclarative ^
-skip qtdoc ^
-skip qtactiveqt ^
-skip qt3d ^
-skip qtimageformats ^
-skip qtlocation ^
-skip qtmultimedia ^
-skip qtopcua ^
-skip qtremoteobjects ^
-skip qtscxml ^
-skip qtsensors ^
-skip qtserialbus ^
-skip qtserialport ^
-skip qtspeech ^
-skip qtsvg ^
-skip qttools ^
-skip qttranslations ^
-skip qtwebchannel ^
-skip qtwebengine ^
-skip qtwebsockets ^
-skip qtwebview ^
-skip qtcharts ^
-skip qtcoap ^
-skip qtlottie ^
-skip qtmqtt ^
-skip qtnetworkauth ^
-skip qtquick3d ^
-skip qtquicktimeline ^
-skip qtvirtualkeyboard ^
-skip qtwayland ^
-skip qtcanvas3d ^
-skip qtgamepad ^
-skip qtpurchasing ^
-skip qtscript
- name: Build Qt
if: steps.cache-qt-restore.outputs.cache-hit != 'true'
shell: cmd
working-directory: qt-everywhere-src-${{ matrix.qt_version }}
run: nmake
- name: Cache Qt
if: steps.cache-qt-restore.outputs.cache-hit != 'true'
id: cache-qt
uses: actions/cache/save@v4
with:
path: qt-everywhere-src-${{ matrix.qt_version }}
key: windows-qt-${{ matrix.qt_version }}
- name: Install Qt
shell: cmd
working-directory: qt-everywhere-src-${{ matrix.qt_version }}
run: nmake install
- name: Configure CMake
run: cmake -DCMAKE_BUILD_TYPE="${{env.BUILD_TYPE}}" -DQUAZIP_QT_MAJOR_VERSION=5 -DBUILD_SHARED_LIBS=OFF -DQUAZIP_ENABLE_TESTS=ON -DQUAZIP_USE_QT_ZLIB=ON -B build -DCMAKE_PREFIX_PATH="${{github.workspace}}\Qt"
- name: Build
run: cmake --build build --config ${{env.BUILD_TYPE}}
- name: Run tests
shell: cmd
working-directory: build
run: ctest --extra-verbose -C Release