This repository has been archived by the owner on Jun 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 56
/
azure-pipelines.yml
63 lines (59 loc) · 2.42 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
trigger:
- master
- refs/tags/*
pr:
- master
variables:
BUILD_NUMBER: $(Build.BuildNumber)
BUILD_COMMIT: $(Build.SourceVersion)
PRE_RESTORE_PROJECTS: true # Windows is having an issue on CI right now
# 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: 120
areaPath: 'DevDiv\Xamarin SDK\Android'
preBuildSteps:
- pwsh: |
dotnet tool install --global boots
boots https://aka.ms/xamarin-android-commercial-d16-5-macos
condition: eq(variables['System.JobName'], 'macos')
- pwsh: |
dotnet tool install --global boots
boots https://aka.ms/xamarin-android-commercial-d16-5-windows
condition: eq(variables['System.JobName'], 'windows')
tools:
- 'xamarin.androidbinderator.tool': '0.4.2'
- 'xamarin.androidx.migration.tool': '1.0.0-rc1'
postBuildSteps:
- pwsh: .\fatten.ps1
displayName: 'Fatten the NuGet packages'
# Run some internal auditing on Windows
- ${{ if and(eq(variables['System.TeamProject'], 'devdiv'), eq(variables['System.JobName'], 'windows')) }}:
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
condition: not(startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
displayName: Component Detection - Log
inputs:
scanType: LogOnly
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/')
displayName: Component Detection - Report
- task: securedevelopmentteam.vss-secure-development-tools.build-task-policheck.PoliCheck@1
condition: eq(variables['System.TeamProject'], 'devdiv')
displayName: 'PoliCheck'
inputs:
targetType: F
- ${{ if eq(variables['System.TeamProject'], 'devdiv') }}:
- template: sign-artifacts/jobs/v1.yml@internal-templates
parameters:
dependsOn: [ 'build' ]