@@ -272,6 +272,11 @@ jobs:
272272 --dep-prefix /Users/runner/work/deps
273273 - name : Build tarball
274274 run : tar -zcf qt-static-macos-${{ matrix.arch }}-${{ matrix.macos }}.tar.gz -C /Users/runner/work/deps qt
275+ - name : Upload artifact
276+ uses : actions/upload-artifact@v4
277+ with :
278+ name : qt-static-macos-${{ matrix.arch }}-${{ matrix.macos }}-qt
279+ path : qt-static-macos-${{ matrix.arch }}-${{ matrix.macos }}.tar.gz
275280 - name : Upload tarball to nightly release
276281 if : github.event_name == 'push'
277282 uses : ncipollo/release-action@v1
@@ -283,3 +288,58 @@ jobs:
283288 prerelease : true
284289 replacesArtifacts : true
285290 artifacts : qt-static-macos-${{ matrix.arch }}-${{ matrix.macos }}.tar.gz
291+
292+ qt-static-ios :
293+ needs : [update-nightly-tag, qt-static-macos]
294+ strategy :
295+ matrix :
296+ arch : [ios-arm64, iphonesimulator-arm64, iphonesimulator-x86_64]
297+ include :
298+ - arch : ios-arm64
299+ host_arch : arm64
300+ - arch : iphonesimulator-arm64
301+ host_arch : arm64
302+ - arch : iphonesimulator-x86_64
303+ host_arch : x86_64
304+ runs-on : ${{ matrix.host_arch == 'arm64' && 'macos-14' || 'macos-15-intel' }}
305+ permissions :
306+ contents : write
307+ steps :
308+ - uses : actions/checkout@v4
309+ - name : Download host Qt
310+ uses : actions/download-artifact@v4
311+ with :
312+ name : qt-static-macos-${{ matrix.host_arch }}-12.0-qt
313+ - name : Extract host Qt
314+ run : |
315+ mkdir -p /Users/runner/work/host-qt
316+ tar -zxf qt-static-macos-${{ matrix.host_arch }}-12.0.tar.gz --strip-components=1 -C /Users/runner/work/host-qt
317+ - name : Cache Qt
318+ id : cache-qt
319+ uses : actions/cache@v4
320+ with :
321+ path : |
322+ /Users/runner/work/deps/qt
323+ key : ${{ github.job }}-${{ matrix.arch }}-qt
324+ - name : Homebrew dependencies to build dependencies
325+ run : brew bundle --file qtox/deps/Brewfile-static
326+ - name : Build Qt
327+ if : steps.cache-qt.outputs.cache-hit != 'true'
328+ run : qtox/deps/local_install_deps.sh
329+ --arch ${{ matrix.arch }}
330+ --dep-file qtox/deps/qt.depfile
331+ --dep-prefix /Users/runner/work/deps
332+ --host-path /Users/runner/work/host-qt
333+ - name : Build tarball
334+ run : tar -zcf qt-static-${{ matrix.arch }}.tar.gz -C /Users/runner/work/deps qt
335+ - name : Upload tarball to nightly release
336+ if : github.event_name == 'push'
337+ uses : ncipollo/release-action@v1
338+ with :
339+ allowUpdates : true
340+ tag : nightly
341+ omitBodyDuringUpdate : true
342+ omitNameDuringUpdate : true
343+ prerelease : true
344+ replacesArtifacts : true
345+ artifacts : qt-static-${{ matrix.arch }}.tar.gz
0 commit comments