forked from xamarin/XamarinComponents
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
73 lines (69 loc) · 2.41 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
trigger:
- main
- refs/tags/*
pr:
- main
resources:
repositories:
- repository: internal-templates
type: github
name: xamarin/yaml-templates
endpoint: xamarin
ref: refs/heads/main
- repository: components
type: github
name: xamarin/XamarinComponents
endpoint: xamarin
ref: refs/heads/main
variables:
DotNet6Version: 6.0.100-preview.4.21255.9
XamarinAndroidVsix: https://download.visualstudio.microsoft.com/download/pr/df30312e-15ca-440c-a68f-71b1a607b3a0/bcaeb3543b68c9db872f7e1dba6ba4ccb18c27525a8cbd5101e9301e96a1904c/Xamarin.Android.Sdk-11.3.0.1.vsix
XamarinAndroidPkg: https://download.visualstudio.microsoft.com/download/pr/a0b4924f-c812-48d9-997f-c7e39d5eeb8a/611a6933f16ef1ae837beca7de265713/xamarin.android-11.3.0.1.pkg
jobs:
- template: .ci/build.yml@components
parameters:
timeoutInMinutes: 360
areaPath: 'DevDiv\Xamarin SDK\Android'
buildType: 'manifest'
linuxImage: 'ubuntu-latest'
validPackagePrefixes:
# Preferred prefixes
- Xamarin
- Mono
# Other product prefixes
- SkiaSharp
- HarfBuzzSharp
- mdoc
# Historical prefixes
- Masonry
- GoogleGson
- AndroidEasingFunctions
- Square
- JakeWharton.Picasso2OkHttp3Downloader
- RecyclerViewAnimators
- GoogleGson
dotnet: $(DotNet6Version)
preBuildSteps:
- pwsh: |
dotnet tool install --global boots
displayName: install .NET global tools
- pwsh: |
boots $(XamarinAndroidPkg)
condition: eq(variables['System.JobName'], 'macos')
displayName: install Xamarin.Android
- pwsh: |
boots $(XamarinAndroidVsix)
condition: eq(variables['System.JobName'], 'windows')
displayName: install Xamarin.Android
- pwsh: |
dotnet workload install microsoft-android-sdk-full
displayName: install .NET 6 Android Workload
condition: ne(variables['System.JobName'], 'linux')
tools:
- 'xamarin.androidbinderator.tool': '0.4.3'
- 'xamarin.androidx.migration.tool': '1.0.8'
- ${{ if eq(variables['System.TeamProject'], 'devdiv') }}:
- template: sign-artifacts/jobs/v2.yml@internal-templates
parameters:
dependsOn: [ 'build' ]
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/')