From dfe927dcbd9e71c8baa49c684232243385d12e08 Mon Sep 17 00:00:00 2001 From: "vladimir.kuznetsov" Date: Wed, 23 Nov 2022 17:26:29 +0300 Subject: [PATCH] for github actions added step to build ios application --- .github/workflows/deploy.yml | 53 +++++++++++++++++++++++++++++++++++- 1 file changed, 52 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c775ac11..54b96136 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -67,7 +67,7 @@ jobs: # - name: Build project # run: bash deploy/build_linux.sh - +# ------------------------------------------------------ Build-Windows: name: Build-Windows @@ -135,6 +135,57 @@ jobs: # name: AmneziaVPN_x${{ env.BUILD_ARCH }} # path: AmneziaVPN_x${{ env.BUILD_ARCH }}.exe +# ------------------------------------------------------ + + Build-IOS: + name: Build-IOS + runs-on: macos-latest + + env: + QT_VERSION: 5.15.2 + QIF_VERSION: 4.4 + + steps: + - name: Setup xcode + uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: '13.4' + + - name: Install Qt + uses: jurplel/install-qt-action@v3 + with: + version: ${{ env.QT_VERSION }} + host: 'mac' + target: 'ios' + 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: 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 + bash deploy/build_ios.sh + +# ------------------------------------------------------ + # Build-MacOS: # name: Build-MacOS # runs-on: ubuntu-latest