forked from maplibre/maplibre-native-qt
-
Notifications
You must be signed in to change notification settings - Fork 0
131 lines (116 loc) · 3.23 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
name: iOS CI
on:
workflow_dispatch:
push:
branches:
- main
tags:
- "**"
paths-ignore:
- ".gitignore"
- "README.md"
- "docs/**"
# ignore CI for other platforms
- ".github/FUNDING.yml"
- ".github/actions/**"
- ".github/workflows/Android.yml"
- ".github/workflows/Linux.yml"
- ".github/workflows/macOS.yml"
- ".github/workflows/Windows.yml"
pull_request:
branches:
- main
paths-ignore:
- ".gitignore"
- "README.md"
- "docs/**"
# ignore CI for other platforms
- ".github/FUNDING.yml"
- ".github/actions/**"
- ".github/workflows/Android.yml"
- ".github/workflows/Linux.yml"
- ".github/workflows/macOS.yml"
- ".github/workflows/Windows.yml"
concurrency:
# cancel jobs on PRs only
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
build:
name: Build (Qt${{ matrix.qt_version}})
runs-on: macos-14
strategy:
matrix:
include:
- qt_version: 6.5.3
preset: iOS
- qt_version: 6.6.3
preset: iOS
- qt_version: 6.7.3
preset: iOS
env:
PRESET: ${{ matrix.preset }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: source
submodules: recursive
fetch-depth: 0
- name: Recover disk space
run: |
df -h
ls /Applications
brew uninstall google-chrome
sudo rm -rf /Users/runner/Library/Android
sudo rm -rf /Applications/Xcode_14*
sudo rm -rf /Applications/Xcode_15.0*
sudo rm -rf /Applications/Xcode_15.1*
sudo rm -rf /Applications/Xcode_15.2*
sudo rm -rf /Applications/Xcode_15.3*
ls /Applications
df -h
- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Download Qt
uses: jurplel/install-qt-action@v4
with:
aqtversion: ==3.1.*
version: ${{ matrix.qt_version }}
target: ios
modules: qtlocation qtpositioning
- name: Setup ninja
uses: seanmiddleditch/gha-setup-ninja@v5
- name: Build
working-directory: source
run: |
export QT_HOST_PATH="$(readlink -f "$QT_ROOT_DIR/../macos")"
cmake --workflow --preset ${PRESET}
- name: Upload installation
uses: actions/upload-artifact@v4
with:
name: iOS_${{ matrix.qt_version }}
path: build/qt6-iOS/maplibre-native-qt_*_iOS.tar.bz2
release:
name: Release
if: github.ref_type == 'tag'
runs-on: macos-14
needs: build
permissions:
contents: write
strategy:
matrix:
qt_version: [6.5.3, 6.6.3, 6.7.3]
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: iOS_${{ matrix.qt_version }}
- name: Release
uses: ncipollo/release-action@v1
with:
artifacts: maplibre-native-qt_${{ github.ref_name }}_Qt${{ matrix.qt_version }}_iOS.tar.bz2
allowUpdates: true
draft: true