forked from mono/SkiaSharp.Extended
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
98 lines (92 loc) · 3.22 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
trigger:
- master
variables:
VERBOSITY: normal
GIT_SHA: $(Build.SourceVersion)
GIT_BRANCH_NAME: $(Build.SourceBranchName)
BUILD_NUMBER: $[counter('$(Build.SourceBranchName)_counter', 1)]
MONO_VERSION: 5_16_0
XCODE_VERSION: 10.1
resources:
repositories:
- repository: xamarin-templates
type: github
name: xamarin/yaml-templates
endpoint: xamarin
jobs:
- job: build_windows
displayName: Build (Windows)
pool:
vmImage: vs2017-win2016
steps:
- powershell: .\build.ps1
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
displayName: Component Detection
inputs:
scanType: LogOnly
- task: PublishTestResults@2
inputs:
testResultsFormat: xUnit
testResultsFiles: 'output/**/TestResult.xml'
- task: PublishPipelineArtifact@0
inputs:
artifactName: build_windows
targetPath: 'output'
- task: PublishBuildArtifacts@1
inputs:
artifactName: nuget
pathToPublish: 'output/nugets'
- job: build_macos
displayName: Build (macOS)
pool:
vmImage: macos-10.13
steps:
- task: InstallAppleCertificate@2
inputs:
certSecureFile: 'SkiaSharp iOS Certificate.p12'
- task: InstallAppleCertificate@2
inputs:
certSecureFile: 'SkiaSharp Mac Certificate.p12'
- task: InstallAppleProvisioningProfile@1
inputs:
provProfileSecureFile: 'SkiaSharp iOS Provisioning.mobileprovision'
- task: InstallAppleProvisioningProfile@1
inputs:
provProfileSecureFile: 'SkiaSharp Mac Provisioning.provisionprofile'
- task: InstallAppleProvisioningProfile@1
inputs:
provProfileSecureFile: 'SkiaSharp tvOS Provisioning.mobileprovision'
- bash: sudo $AGENT_HOMEDIRECTORY/scripts/select-xamarin-sdk.sh $(MONO_VERSION)
displayName: Switch to the latest Xamarin SDK
- bash: echo '##vso[task.setvariable variable=MD_APPLE_SDK_ROOT;]'/Applications/Xcode_$(XCODE_VERSION).app;sudo xcode-select --switch /Applications/Xcode_$(XCODE_VERSION).app/Contents/Developer
displayName: Switch to the latest Xcode
- bash: ./build.sh
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
displayName: Component Detection
inputs:
scanType: LogOnly
- task: PublishTestResults@2
inputs:
testResultsFormat: xUnit
testResultsFiles: 'output/**/TestResult.xml'
- task: PublishPipelineArtifact@0
inputs:
artifactName: build_macos
targetPath: 'output'
- ${{ if eq(variables['System.TeamProject'], 'devdiv') }}:
- job: signing
displayName: Signing NuGets
dependsOn: build_windows
pool:
name: VSEng-XamarinCustom
demands:
- corpnet
steps:
- checkout: none
- template: sign-artifacts.yml@xamarin-templates
parameters:
targetFolder: 'output/signed'
- task: PublishPipelineArtifact@0
inputs:
artifactName: nuget-signed
targetPath: 'output/signed'