forked from unoplatform/Uno.Gallery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
179 lines (151 loc) · 4.66 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
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/')]
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
- 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: net7.0-windows10.0.19041
- name: ArtifactName
value: Windows
- name: VersionCodeOffset
value: 50
- name: PackageOutputPath
value: $(Build.ArtifactStagingDirectory)
steps:
- template: build/stage-build-windows.yml
- job: Windows_SkiaGtk
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-gtk.yml
- job: macOS_netcore
strategy:
maxParallel: 2
matrix:
iOS:
BuildTargetFramework: net7.0-ios
ArtifactName: iOS-mobile
ApplicationBuildNumberOffset: 50
BuildCommand: publish
Catalyst:
BuildTargetFramework: net7.0-maccatalyst
ArtifactName: Catalyst
ApplicationBuildNumberOffset: 50
BuildCommand: build
pool:
vmImage: macos-12
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/stage-build-mobile.yml
- job: Linux
timeoutInMinutes: 30
pool:
vmImage: ubuntu-latest
container: unoplatform/wasm-build:3.0
variables:
ArtifactName: WASM
SkipUnknownFrameworks: true
steps:
- template: build/stage-build-wasm.yml
- template: build/stage-uitests-wasm.yml
- template: build/stage-uitests-ios.yml
- template: build/stage-uitests-android.yml