for github actions added step to build ios application

This commit is contained in:
vladimir.kuznetsov 2022-11-23 17:26:29 +03:00
parent ca158def31
commit dfe927dcbd

View file

@ -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