-
Notifications
You must be signed in to change notification settings - Fork 43
/
azure-pipelines.yml
225 lines (191 loc) · 5.77 KB
/
azure-pipelines.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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
trigger:
branches:
include:
- master
- beta
- release/beta/*
- stable
- release/stable/*
- legacy/*
paths:
include:
- '/'
exclude:
- .dependabot/
- .github/
# don't trigger the CI if only docs files are changed
- doc/*
- '**/*.md'
pr:
branches:
include:
- master
- beta
- release/beta/*
- stable
- release/stable/*
- legacy/*
paths:
include:
- '/'
exclude:
- .dependabot/
- .github/
# don't trigger the CI if only docs files are changed
- doc/*
- '**/*.md'
variables:
IsLightBuild: $[eq(variables['Build.Reason'], 'PullRequest')]
IsCanaryBranch: $[startsWith(variables['Build.SourceBranch'], 'refs/heads/canaries/')]
XCODE_ROOT: '/Applications/Xcode_16.app'
XCODE_ROOT_UITESTS: '/Applications/Xcode_15.3.app'
# Required to about trashing azdo hosted agents
AotCompileMaxDegreeOfParallelism: 2
stages:
- stage: Android
displayName: 'Android'
dependsOn: []
jobs:
- job: Windows_Android_Mobile
strategy:
maxParallel: 3
matrix:
Android_Store:
ApplicationPlatform: AnyCPU
ArtifactName: Android
BuildForPlayStore: True
VersionCodeOffset: 1
pool:
vmImage: windows-2022
variables:
- group: 'UADO Keystore' # Import all variables for the signing from the library in azure devops
steps:
- template: build/stage-build-android-mobile.yml
- stage: Windows
displayName: 'Windows'
dependsOn: []
jobs:
- job: Windows_WinAppSDK
pool:
vmImage: windows-2022
variables:
- group: 'UADO Keystore' # Import all variables for the Android signing from the library in azure devops
- group: 'Uno Platform authenticode signing' # Import all variables for the signing from the library in azure devops
- name: ApplicationPlatform
value: x86 # switch back to x64 once CommunityToolkit.WinUI.UI supports x64 (https://github.com/CommunityToolkit/Lottie-Windows/issues/515#issuecomment-1662305826)
- name: BuildTargetFramework
value: net9.0-windows10.0.19041
- name: ArtifactName
value: Windows
- name: VersionCodeOffset
value: 50
- name: PackageOutputPath
value: $(Build.ArtifactStagingDirectory)
steps:
- template: build/stage-build-windows.yml
- stage: Skia_Desktop
displayName: 'Skia Desktop'
dependsOn: []
jobs:
- job: Windows_Desktop
pool:
vmImage: windows-2022
variables:
- group: 'UADO Keystore' # Import all variables for the signing from the library in azure devops
steps:
- template: build/stage-build-skia-desktop.yml
- stage: Apple
displayName: 'Apple'
dependsOn: []
jobs:
- job: macOS_netcore
timeoutInMinutes: 90
strategy:
maxParallel: 2
matrix:
iOS:
BuildTargetFramework: net9.0-ios
ArtifactName: iOS-mobile
ApplicationBuildNumberOffset: 50
BuildCommand: publish
Catalyst:
BuildTargetFramework: net9.0-maccatalyst
ArtifactName: Catalyst
ApplicationBuildNumberOffset: 50
BuildCommand: build
pool:
vmImage: macos-15
variables:
- name: SkipUnknownFrameworks
value: true # Used by TargetFrameworks.Filtering package
- group: unoplatform.apple.ios.appstore.distribution
steps:
- task: InstallAppleCertificate@2
displayName: Install Certificate
inputs:
certSecureFile: UnoPlatform-Apple-Distribution.p12
certPwd: $(appleappstorecertificatepassword)
keychain: temp
# disabled because of azure devops failing to uninstall as of 2022-11-16
# deleteCert: true
- task: InstallAppleCertificate@2
displayName: Install Certificate
inputs:
certSecureFile: UnoPlatform-MacInstaller.p12
certPwd: $(appleappstorecertificatepassword)
keychain: temp
# disabled because of azure devops failing to uninstall as of 2022-11-16
# deleteCert: true
- task: InstallAppleProvisioningProfile@1
displayName: 'Install Apple Provisioning Profile'
inputs:
provisioningProfileLocation: 'secureFiles'
provProfileSecureFile: Uno_Gallery_Catalyst.provisionprofile
- task: InstallAppleProvisioningProfile@1
displayName: 'Install Apple Provisioning Profile'
inputs:
provisioningProfileLocation: 'secureFiles'
provProfileSecureFile: Uno_Gallery_Canary_Catalyst.provisionprofile
- task: InstallAppleProvisioningProfile@1
displayName: 'Install Apple Provisioning Profile'
inputs:
provisioningProfileLocation: 'secureFiles'
provProfileSecureFile: Uno_Gallery_iOS.mobileprovision
- task: InstallAppleProvisioningProfile@1
displayName: 'Install Apple Provisioning Profile'
inputs:
provisioningProfileLocation: 'secureFiles'
provProfileSecureFile: Uno_Gallery_Canary_iOS.mobileprovision
- template: build/templates/xcode-select.yml
parameters:
xCodeRoot: $(XCODE_ROOT)
- template: build/stage-build-mobile.yml
- stage: WebAssembly
displayName: 'WebAssembly'
dependsOn: []
jobs:
- job: WebAssembly
timeoutInMinutes: 60
pool:
vmImage: ubuntu-latest
container: unoplatform/wasm-build:3.0
variables:
ArtifactName: WASM
SkipUnknownFrameworks: true
steps:
- template: build/stage-build-wasm.yml
- stage: WebAssembly_Tests
displayName: 'WebAssembly Tests'
dependsOn: []
jobs:
- template: build/stage-uitests-wasm.yml
- stage: iOS_Tests
displayName: 'iOS Tests'
dependsOn: []
jobs:
- template: build/stage-uitests-ios.yml
- stage: Android_Tests
displayName: 'Android Tests'
dependsOn: []
jobs:
- template: build/stage-uitests-android.yml