From 9097dd96455071ceec00fa9b8d5213aa257dd604 Mon Sep 17 00:00:00 2001 From: Shahzain Ali Date: Fri, 9 Dec 2022 02:59:35 +0500 Subject: [PATCH] actions for ios using cmake --- .github/workflows/deploy.yml | 69 ++++++++++++++++++++++++++++++++++-- 1 file changed, 67 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d466d6cc..abbd0797 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -154,8 +154,73 @@ jobs: bash deploy/build_ios.sh # ------------------------------------------------------ +Build-IOS-cmake: + name: 'Build-IOS-cmake' + runs-on: macos-latest + + if: github.ref == 'refs/heads/qmake-to-cmake-migration' + env: + QT_VERSION: 6.4.1 + QIF_VERSION: 4.4 - Build-MacOS: + steps: + - name: 'Setup xcode' + uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: '13.4' + + - name: 'Install desktop Qt' + uses: jurplel/install-qt-action@v3 + with: + version: ${{ env.QT_VERSION }} + host: 'mac' + target: 'desktop' + arch: 'clang_64' + modules: 'qtremoteobjects qt5compat' + dir: ${{ runner.temp }} + set-env: 'true' + + - name: 'Install ios Qt' + uses: jurplel/install-qt-action@v3 + with: + version: ${{ env.QT_VERSION }} + host: 'mac' + target: 'ios' + modules: 'qtremoteobjects qt5compat' + dir: ${{ runner.temp }} + setup-python: 'true' + set-env: 'true' + extra: '--external 7z' + + - name: 'Install go' + uses: actions/setup-go@v3 + + - name: 'Setup gomobile' + run: | + export PATH=$PATH:~/go/bin + go install golang.org/x/mobile/cmd/gomobile@latest + gomobile init + + - name: 'Get sources' + uses: actions/checkout@v3 + with: + submodules: 'true' + fetch-depth: 10 + + - name: 'Setup ccache' + uses: hendrikmuhs/ccache-action@v1.2 + + - name: 'Build project' + run: | + export QT_BIN_DIR="${{ runner.temp }}/Qt/${{ env.QT_VERSION }}/ios/bin" + export QT_IOS_BIN=$QT_BIN_DIR + export PATH=$PATH:~/go/bin + mkdir build-ios + $QT_IOS_BIN/qt-cmake . -B build-ios -GXcode + +# ------------------------------------------------------ + +Build-MacOS: name: 'Build-MacOS' runs-on: macos-latest @@ -268,4 +333,4 @@ jobs: fi export QT_BIN_DIR=${{ runner.temp }}/Qt/${{ env.QT_VERSION }}/${{ matrix.arch }}/bin - bash deploy/build_android.sh \ No newline at end of file + bash deploy/build_android.sh