-
Notifications
You must be signed in to change notification settings - Fork 3
51 lines (45 loc) · 1.2 KB
/
ios.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Compile on iOS
on:
create:
branches: [ ios ]
push:
branches: [ ios ]
pull_request:
branches: [ ios ]
env:
APPLICATION: "addhoursandminutes"
jobs:
build:
runs-on: macos-12
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Install Qt for Desktop
uses: jurplel/install-qt-action@v3
with:
version: '6.5.*'
- name: Set QT_HOST_PATH
run: |
echo QT_HOST_PATH=$Qt6_DIR >> $GITHUB_ENV
- name: Install Qt for iOS
uses: jurplel/install-qt-action@v3
with:
target: 'ios'
version: '6.5.*'
- name: Setup env
run: |
export PATH=$Qt6_DIR/bin:$PATH
ln -s /Users/runner/work/${{env.APPLICATION}}/Qt/6.5.0/macos /Users/runner/work/${{env.APPLICATION}}/Qt/6.5.0/clang_64
qmake --version
- name: Configure
env:
XADT: ${{ secrets.XCODE_ATTRIBUTE_DEVELOPMENT_TEAM }}
run: |
cmake -E make_directory build
cd build
$Qt6_DIR/bin/qt-cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_XCODE_ATTRIBUTE_DEVELOPMENT_TEAM=$XADT
- name: Compile
run: |
cd build
cmake --build . -- -allowProvisioningUpdates