-
Notifications
You must be signed in to change notification settings - Fork 41
/
azure-pipelines.yml
52 lines (49 loc) · 1.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
variables:
solution: 'Eto.OpenTK.sln'
build.version: '0.1.2-ci-$(Build.BuildNumber)'
build.configuration: 'Release'
build.arguments: /restore /t:Build;Pack /p:BuildVersion=$(build.version) /p:BuildBranch=$(Build.SourceBranch)
trigger:
- master
- refs/tags/*
jobs:
- job: Mac
pool:
vmImage: 'macOS-10.14'
variables:
build.platform: 'Mac'
steps:
- script: sudo $AGENT_HOMEDIRECTORY/scripts/select-xamarin-sdk.sh 5_18_1
displayName: 'Select Xamarin SDK version'
- task: MSBuild@1
displayName: Restore, Build and Package
inputs:
solution: '$(solution)'
platform: '$(build.platform)'
configuration: '$(build.configuration)'
msbuildArguments: '$(build.arguments)'
- task: PublishBuildArtifacts@1
displayName: Publish nupkg
inputs:
pathtoPublish: artifacts/nuget/$(build.configuration)
artifactName: nuget
publishLocation: container
- job: Windows
pool:
vmImage: 'windows-2019'
variables:
build.platform: 'Windows'
steps:
- task: MSBuild@1
displayName: Restore, Build and Package
inputs:
solution: '$(solution)'
platform: '$(build.platform)'
configuration: '$(build.configuration)'
msbuildArguments: '$(build.arguments)'
- task: PublishBuildArtifacts@1
displayName: Publish nupkg
inputs:
pathtoPublish: artifacts/nuget/$(build.configuration)
artifactName: nuget
publishLocation: container