forked from xamarin/FacebookComponents
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
65 lines (59 loc) · 2.45 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
trigger:
- main
- refs/tags/*
variables:
DotNetVersion: 6.0.102
# NOTE: there wasn't a public release of 16.11 for macOS
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_COMMIT: $(Build.SourceVersion)
BUILD_NUMBER: $(Build.BuildNumber)
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
jobs:
- template: .ci/build.yml@components
parameters:
areaPath: 'DevDiv\VS Client - Runtime SDKs'
windowsImage: windows-2019
xcode: 13.0
initSteps:
- task: UseDotNet@2
displayName: install .NET $(DotNetVersion)
inputs:
version: $(DotNetVersion)
- pwsh: |
dotnet workload install android
- task: JavaToolInstaller@0
inputs:
versionSpec: '11'
jdkArchitectureOption: 'x64'
jdkSourceOption: 'PreInstalled'
preBuildSteps:
- pwsh: |
dotnet tool install --global boots
boots $(LegacyXamarinAndroidPkg)
condition: eq(variables['System.JobName'], 'macos')
- ${{ if eq(variables['System.TeamProject'], 'devdiv') }}:
- template: sign-artifacts/jobs/v2.yml@internal-templates
parameters:
dependsOn: [ 'build' ]
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags/')
- template: compliance/sbom/job.v1.yml@internal-templates # Software Bill of Materials (SBOM): https://eng.ms/docs/cloud-ai-platform/devdiv/one-engineering-system-1es/1es-docs/secure-supply-chain/ado-sbom-generator
parameters:
packageName: 'Xamarin Facebook Components'
packageFilter: '*.nupkg'
${{ if not(startsWith(variables['Build.SourceBranch'], 'refs/tags/')) }}:
artifactNames: ['nuget']
dependsOn: [ 'build' ]
${{ if startsWith(variables['Build.SourceBranch'], 'refs/tags/') }}:
artifactNames: ['nuget-signed']
dependsOn: [ 'signing' ]