-
Notifications
You must be signed in to change notification settings - Fork 28
136 lines (132 loc) · 4.47 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
132
133
134
135
136
name: Compile on iOS
on:
push:
branches: [ develop ]
paths-ignore:
- ".gitignore"
- "README.md"
# ignore CI for other platforms
- ".github/workflows/android.yml"
- ".github/workflows/api.yml"
- ".github/workflows/linux.yml"
- ".github/workflows/macos.yml"
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout Enroute
uses: actions/checkout@v4
with:
path: enroute
submodules: recursive
fetch-depth: 0
- name: Checkout Enroute Dependencies
uses: actions/checkout@v4
with:
path: enrouteDependencies
repository: Akaflieg-Freiburg/enrouteDependencies
submodules: recursive
- name: Set up macOS
uses: actions/setup-python@v4
with:
python-version: '3.8'
- name: Install Ninja
run: brew install ninja
- name: Install Qt for Desktop
uses: jurplel/install-qt-action@v4
with:
cache: 'true'
cache-key-prefix: 'install-qt-action-macOS-host'
version: '6.7.*'
modules: 'qt5compat qtconnectivity qthttpserver qtimageformats qtlocation qtmultimedia qtpositioning qtshadertools qtspeech qtwebsockets qtwebview'
- name: Set QT_HOST_PATH
run: |
echo QT_HOST_PATH=$QT_ROOT_DIR >> $GITHUB_ENV
- name: Install Qt for iOS
uses: jurplel/install-qt-action@v4
with:
cache: 'true'
cache-key-prefix: 'install-qt-action-iOS'
target: 'ios'
version: '6.7.*'
modules: 'qt5compat qtconnectivity qthttpserver qtimageformats qtlocation qtmultimedia qtpositioning qtshadertools qtsensors qtspeech qtwebsockets qtwebview'
- name: ccache
uses: hendrikmuhs/[email protected]
with:
key: macos
- name: Compile and Install bzip2
run: |
$QT_ROOT_DIR/bin/qt-cmake \
-G Ninja \
-S enrouteDependencies/bzip2 \
-B build-bzip2-iOS \
-DENABLE_APP=OFF \
-DENABLE_DOCS=OFF \
-DENABLE_SHARED_LIB=OFF \
-DENABLE_STATIC_LIB=ON \
-DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" \
-DCMAKE_INSTALL_PREFIX=$QT_ROOT_DIR
cmake --build build-bzip2-iOS
cmake --install build-bzip2-iOS
- name: Compile and Install zlib
run: |
$QT_ROOT_DIR/bin/qt-cmake \
-G Ninja \
-S enrouteDependencies/zlib \
-B build-zlib-iOS \
-DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" \
-DCMAKE_INSTALL_PREFIX=$QT_ROOT_DIR
cmake --build build-zlib-iOS
cmake --install build-zlib-iOS
- name: Compile and Install libzip
run: |
$QT_ROOT_DIR/bin/qt-cmake \
-S enrouteDependencies/libzip \
-B build-libzip \
-G Ninja \
-DBUILD_DOC=OFF \
-DBUILD_EXAMPLES=OFF \
-DBUILD_REGRESS=OFF \
-DBUILD_SHARED_LIBS=OFF \
-DBUILD_TOOLS=OFF \
-DENABLE_BZIP2=OFF \
-DENABLE_LZMA=OFF \
-DENABLE_ZSTD=OFF \
-DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" \
-DCMAKE_INSTALL_PREFIX=$QT_ROOT_DIR
cmake --build build-libzip
cmake --install build-libzip
- name: Compile and Install maplibre-native-qt
run: |
$QT_ROOT_DIR/bin/qt-cmake \
-S enrouteDependencies/maplibre-native-qt \
-B build-maplibre-native-qt \
-G Ninja \
-DBUILD_TESTING=OFF \
-DCMAKE_C_COMPILER_LAUNCHER="ccache" \
-DCMAKE_CXX_COMPILER_LAUNCHER="ccache" \
-DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" \
-DCMAKE_PREFIX_PATH=$QT_ROOT_DIR \
-DCMAKE_INSTALL_PREFIX=$QT_ROOT_DIR
cmake --build build-maplibre-native-qt
cmake --install build-maplibre-native-qt
- name: Compile Enroute Flight Navigation
run: |
$QT_ROOT_DIR/bin/qt-cmake \
-B build-enroute \
-S enroute \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_C_COMPILER_LAUNCHER="ccache" \
-DCMAKE_CXX_COMPILER_LAUNCHER="ccache" \
-DCMAKE_INSTALL_PREFIX=.
cmake --build build-enroute -- -sdk iphonesimulator
- name: Package
run: |
brew install create-dmg
create-dmg enroute-iphonesimulator.dmg build-enroute/src/Debug-iphonesimulator
- name: Upload to developerBuilds
run: |
gh release upload --clobber developerBuilds ../enroute-iphonesimulator.dmg
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
working-directory: enroute