This repository has been archived by the owner on Nov 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 147
/
Copy pathazure-pipelines.yaml
75 lines (70 loc) · 2.87 KB
/
azure-pipelines.yaml
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
trigger:
- main
- refs/tags/*
pr:
- main
- main_based_androidx*
- master_based_androidx*
variables:
AndroidBinderatorVersion: 0.5.1
AndroidXMigrationVersion: 1.0.8
DotNetVersion: 6.0.100-rc.2.21505.57
DotNet6Source: https://aka.ms/dotnet6/nuget/index.json
NuGetOrgSource: https://api.nuget.org/v3/index.json
LegacyXamarinAndroidPkg: https://dl.internalx.com/vsts-devdiv/Xamarin.Android/public/4941337/d16-11/7776c9f1c8fac303c3aa57867825990850be0384/xamarin.android-11.4.0.5.pkg
LegacyXamarinAndroidVsix: https://download.visualstudio.microsoft.com/download/pr/7372b89a-b719-426c-9916-c33cbc6c7a61/45c38957fdcacfbee95be95ee40c4f5a4cc9ace69416625ad26e2da83b176941/Xamarin.Android.Sdk-11.4.0.5.vsix
BUILD_NUMBER: $(Build.BuildNumber)
BUILD_COMMIT: $(Build.SourceVersion)
# XAMARIN_ANDROID_PATH: <path to Xamarin.Android>
resources:
repositories:
- repository: internal-templates
type: github
name: xamarin/yaml-templates
endpoint: xamarin
- repository: components
type: github
name: xamarin/XamarinComponents
endpoint: xamarin
jobs:
- template: .ci/build.yml@components
parameters:
timeoutInMinutes: 240
areaPath: 'DevDiv\Xamarin SDK\Android'
xcode: 13.0
windowsAgentPoolName: android-win-2019
initSteps:
- task: UseDotNet@2
displayName: install .NET $(DotNetVersion)
inputs:
version: $(DotNetVersion)
- pwsh: |
dotnet workload update --verbosity diag --from-rollback-file workload.json --source $(Dotnet6Source) --source $(NuGetOrgSource)
dotnet workload install android --verbosity diag --skip-manifest-update --source $(Dotnet6Source) --source $(NuGetOrgSource)
- task: JavaToolInstaller@0
inputs:
versionSpec: '11'
jdkArchitectureOption: 'x64'
jdkSourceOption: 'PreInstalled'
preBuildSteps:
- pwsh: |
dotnet tool uninstall --global Cake.Tool
dotnet tool install --global Cake.Tool
dotnet tool install --global boots
boots $(LegacyXamarinAndroidPkg)
condition: eq(variables['System.JobName'], 'macos')
- pwsh: |
dotnet tool uninstall --global Cake.Tool
dotnet tool install --global Cake.Tool
dotnet tool install --global boots
boots $(LegacyXamarinAndroidVsix)
condition: eq(variables['System.JobName'], 'windows')
tools:
- 'xamarin.androidbinderator.tool': '$(AndroidBinderatorVersion)'
- 'xamarin.androidx.migration.tool': '$(AndroidXMigrationVersion)'
- ${{ if eq(variables['System.TeamProject'], 'devdiv') }}:
- template: sign-artifacts/jobs/v2.yml@internal-templates
parameters:
timeoutInMinutes: 120
dependsOn: [ 'build' ]
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/')