@@ -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,62 @@ 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 : Debug host Qt
318+ run : |
319+ echo "Checking host Qt directory: /Users/runner/work/host-qt"
320+ ls -F /Users/runner/work/host-qt
321+ - name : Cache Qt
322+ id : cache-qt
323+ uses : actions/cache@v4
324+ with :
325+ path : |
326+ /Users/runner/work/deps/qt
327+ key : ${{ github.job }}-${{ matrix.arch }}-qt
328+ - name : Homebrew dependencies to build dependencies
329+ run : brew bundle --file qtox/deps/Brewfile-static
330+ - name : Build Qt
331+ if : steps.cache-qt.outputs.cache-hit != 'true'
332+ run : qtox/deps/local_install_deps.sh
333+ --arch ${{ matrix.arch }}
334+ --dep-file qtox/deps/qt.depfile
335+ --dep-prefix /Users/runner/work/deps
336+ --host-path /Users/runner/work/host-qt
337+ - name : Build tarball
338+ run : tar -zcf qt-static-${{ matrix.arch }}.tar.gz -C /Users/runner/work/deps qt
339+ - name : Upload tarball to nightly release
340+ if : github.event_name == 'push'
341+ uses : ncipollo/release-action@v1
342+ with :
343+ allowUpdates : true
344+ tag : nightly
345+ omitBodyDuringUpdate : true
346+ omitNameDuringUpdate : true
347+ prerelease : true
348+ replacesArtifacts : true
349+ artifacts : qt-static-${{ matrix.arch }}.tar.gz
0 commit comments