forked from oxyplot/oxyplot-xamarin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
89 lines (83 loc) · 2.4 KB
/
azure-pipelines.yml
File metadata and controls
89 lines (83 loc) · 2.4 KB
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
# Xamarin.Android
# Build a Xamarin.Android project.
# Add steps that test, sign, and distribute an app, save build artifacts, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/xamarin
#
#
# midified from: https://medium.com/@yanxiaodi/using-azure-devops-build-pipeline-for-xamarin-forms-436ddc6bcf97
# removed from msBuildArgs /p:UapAppxPackageBuildMode=StoreUpload'
#
trigger:
- master
jobs:
- job: Android
pool:
vmImage: 'macOS-10.13'
variables:
buildConfiguration: 'Release'
outputDirectory: '$(build.binariesDirectory)/$(buildConfiguration)'
steps:
- task: NuGetToolInstaller@0
- task: NuGetCommand@2
inputs:
restoreSolution: '**/*.sln'
- task: XamarinAndroid@1
inputs:
projectFile: '**/*droid*.csproj'
outputDirectory: '$(outputDirectory)'
configuration: '$(buildConfiguration)'
- job: iOS
pool:
vmImage: 'macOS-10.13'
variables:
buildConfiguration: 'Release'
steps:
- task: NuGetToolInstaller@0
- task: NuGetCommand@2
inputs:
restoreSolution: '**/*.sln'
- task: XamariniOS@2
inputs:
solutionFile: '**/*.sln'
configuration: '$(buildConfiguration)'
buildForSimulator: true
packageApp: false
- job: mac
pool:
vmImage: 'macos-10.13'
variables:
solution: '**/Mac.sln'
outputDirectory: '$(build.binariesDirectory)/$(buildConfiguration)'
buildPlatform: 'AnyCPU'
buildConfiguration: 'release'
steps:
- task: NuGetToolInstaller@0
- bash: |
# building xamarin.Mac via bash sinc there are noe tasks for it
sudo $AGENT_HOMEDIRECTORY/scripts/select-xamarin-sdk.sh 5_4_1
displayName: 'Select Xamarin SDK version'
enabled: true
- task: MSBuild@1
inputs:
solution: '**/*.Mac.*proj'
platform: $(buildPlatform)
configuration: $(buildConfiguration)
- job: WUP
pool:
vmImage: 'windows-2019'
variables:
solution: '**/*.sln'
buildPlatform: 'x86|x64|ARM'
buildConfiguration: 'Release'
appxPackageDir: '$(build.artifactStagingDirectory)\AppxPackages\'
steps:
- task: NuGetToolInstaller@0
- task: NuGetCommand@2
inputs:
restoreSolution: '$(solution)'
- task: VSBuild@1
inputs:
platform: 'x86'
solution: '$(solution)'
configuration: '$(buildConfiguration)'
msbuildArgs: '/p:AppxBundlePlatforms="$(buildPlatform)" /p:AppxPackageDir="$(appxPackageDir)" /p:AppxBundle=Always'