53
53
strategy :
54
54
matrix :
55
55
arch : [arm64]
56
- platform : [ios, ios_simulator, ios-tci, macos, visionos, visionos_simulator, visionos-tci]
56
+ platform : [ios, ios_simulator, ios-tci, ios_simulator-tci, macos, visionos, visionos_simulator, visionos-tci, visionos_simulator -tci]
57
57
include :
58
58
# x86_64 supported only for macOS and simulators
59
59
- arch : x86_64
91
91
if : steps.cache-sysroot.outputs.cache-hit != 'true' || github.event.inputs.rebuild_sysroot == 'true'
92
92
run : ./scripts/build_dependencies.sh -p ${{ matrix.platform }} -a ${{ matrix.arch }}
93
93
env :
94
- NCPU : ${{ matrix.platform == 'ios -tci' && '2 ' || '0' }} # limit 2 CPU for TCI build due to memory issues, 0 = unlimited for other builds
94
+ NCPU : ${{ endsWith( matrix.platform, ' -tci') && '4 ' || '0' }} # limit 4 CPU for TCI build due to memory issues, 0 = unlimited for other builds
95
95
- name : Compress Sysroot
96
96
if : steps.cache-sysroot.outputs.cache-hit != 'true' || github.event_name == 'release' || github.event.inputs.test_release == 'true'
97
97
run : tar -acf sysroot.tgz sysroot*
@@ -152,14 +152,16 @@ jobs:
152
152
needs : [configuration, build-sysroot]
153
153
strategy :
154
154
matrix :
155
- arch : [arm64]
156
- platform : [ios, ios_simulator, ios-tci, macos, visionos, visionos_simulator, visionos-tci]
157
- include :
158
- # x86_64 supported only for macOS and simulators
159
- - arch : x86_64
160
- platform : macos
161
- - arch : x86_64
162
- platform : ios_simulator
155
+ configuration : [
156
+ {arch: "arm64", sdk: "iphoneos", platform: "ios", scheme: "iOS"},
157
+ {arch: "arm64", sdk: "iphoneos", platform: "ios-tci", scheme: "iOS-SE"},
158
+ {arch: "arm64", sdk: "iphoneos", platform: "ios-tci", scheme: "iOS-Remote"},
159
+ {arch: "arm64", sdk: "xros", platform: "visionos", scheme: "iOS"},
160
+ {arch: "arm64", sdk: "xros", platform: "visionos-tci", scheme: "iOS-SE"},
161
+ {arch: "arm64", sdk: "xros", platform: "visionos-tci", scheme: "iOS-Remote"},
162
+ {arch: "arm64", sdk: "macosx", platform: "macos", scheme: "macOS"},
163
+ {arch: "x86_64", sdk: "macosx", platform: "macos", scheme: "macOS"},
164
+ ]
163
165
steps :
164
166
- name : Checkout
165
167
uses : actions/checkout@v3
@@ -169,8 +171,8 @@ jobs:
169
171
id : cache-sysroot
170
172
uses : osy/actions-cache@v3
171
173
with :
172
- path : sysroot-${{ matrix.platform }}-${{ matrix.arch }}
173
- key : ${{ matrix.platform }}-${{ matrix.arch }}-${{ hashFiles('scripts/build_dependencies.sh') }}-${{ hashFiles('patches/**') }}
174
+ path : sysroot-${{ matrix.configuration. platform }}-${{ matrix.configuration .arch }}
175
+ key : ${{ matrix.configuration. platform }}-${{ matrix.configuration .arch }}-${{ hashFiles('scripts/build_dependencies.sh') }}-${{ hashFiles('patches/**') }}
174
176
- name : Check Cache
175
177
if : steps.cache-sysroot.outputs.cache-hit != 'true'
176
178
uses : actions/github-script@v6
@@ -182,12 +184,12 @@ jobs:
182
184
[[ "$(xcode-select -p)" == "${{ env.BUILD_XCODE_PATH }}"* ]] || sudo xcode-select -s "${{ env.BUILD_XCODE_PATH }}"
183
185
- name : Build UTM
184
186
run : |
185
- ./scripts/build_utm.sh -p ${{ matrix.platform }} -a ${{ matrix.arch }} -o UTM
187
+ ./scripts/build_utm.sh -k ${{ matrix.configuration.sdk }} -s ${{ matrix.configuration.scheme }} - a ${{ matrix.configuration .arch }} -o UTM
186
188
tar -acf UTM.xcarchive.tgz UTM.xcarchive
187
189
- name : Upload UTM
188
190
uses : actions/upload-artifact@v3
189
191
with :
190
- name : UTM-${{ matrix.platform }}-${{ matrix.arch }}
192
+ name : UTM-${{ matrix.configuration.scheme }}-${{ matrix.configuration. platform }}-${{ matrix.configuration .arch }}
191
193
path : UTM.xcarchive.tgz
192
194
build-universal :
193
195
name : Build UTM (Universal Mac)
@@ -231,12 +233,14 @@ jobs:
231
233
strategy :
232
234
matrix :
233
235
configuration : [
234
- {platform: "ios", mode: "ipa", name: "UTM.ipa", path: "UTM.ipa"},
235
- {platform: "ios-tci", mode: "ipa-se", name: "UTM-SE.ipa", path: "UTM SE.ipa"},
236
- {platform: "ios", mode: "ipa-hv", name: "UTM-HV.ipa", path: "UTM.ipa"},
237
- {platform: "ios", mode: "deb", name: "UTM.deb", path: "UTM.deb"},
238
- {platform: "visionos", mode: "ipa", name: "UTM-visionOS.ipa", path: "UTM.ipa"},
239
- {platform: "visionos-tci", mode: "ipa-se", name: "UTM-SE-visionOS.ipa", path: "UTM SE.ipa"}
236
+ {platform: "ios", scheme: "iOS", mode: "ipa", name: "UTM.ipa", path: "UTM.ipa"},
237
+ {platform: "ios-tci", scheme: "iOS-SE", mode: "ipa-se", name: "UTM-SE.ipa", path: "UTM SE.ipa"},
238
+ {platform: "ios", scheme: "iOS", mode: "ipa-hv", name: "UTM-HV.ipa", path: "UTM.ipa"},
239
+ {platform: "ios", scheme: "iOS", mode: "deb", name: "UTM.deb", path: "UTM.deb"},
240
+ {platform: "visionos", scheme: "iOS", mode: "ipa", name: "UTM-visionOS.ipa", path: "UTM.ipa"},
241
+ {platform: "visionos-tci", scheme: "iOS-SE", mode: "ipa-se", name: "UTM-SE-visionOS.ipa", path: "UTM SE.ipa"},
242
+ {platform: "ios-tci", scheme: "iOS-Remote", mode: "ipa-remote", name: "UTM-Remote.ipa", path: "UTM Remote.ipa"},
243
+ {platform: "visionos-tci", scheme: "iOS-Remote", mode: "ipa-remote", name: "UTM-Remote-visionOS.ipa", path: "UTM Remote.ipa"},
240
244
]
241
245
if : github.event_name == 'release' || github.event.inputs.test_release == 'true'
242
246
steps :
@@ -245,7 +249,7 @@ jobs:
245
249
- name : Download Artifact
246
250
uses : actions/download-artifact@v3
247
251
with :
248
- name : UTM-${{ matrix.configuration.platform }}-arm64
252
+ name : UTM-${{ matrix.configuration.scheme }}-${{ matrix.configuration. platform }}-arm64
249
253
- name : Install ldid + dpkg
250
254
run : brew install ldid dpkg
251
255
- name : Fakesign IPA
0 commit comments