forked from xamarin/Essentials
/
azure-pipelines-uno.yml
49 lines (41 loc) · 1.61 KB
/
azure-pipelines-uno.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
variables:
CurrentSemanticVersionBase: '1.0.0'
CurrentSemanticVersion: '$(CurrentSemanticVersionBase)-preview$(Build.BuildNumber)'
NugetPackageVersion: '$(CurrentSemanticVersion)'
MONO_VERSION: 5_18_1
XCODE_VERSION: 10.2.1
IOS_SIM_NAME: 'iPhone X'
IOS_SIM_RUNTIME: 'com.apple.CoreSimulator.SimRuntime.iOS-12-2'
ANDROID_EMU_TARGET: 'system-images;android-26;google_apis;x86'
ANDROID_EMU_DEVICE: 'Nexus 5X'
RunPoliCheck: 'false'
jobs:
- job: build_windows
displayName: Build Windows Library
pool:
vmImage: vs2017-win2016
steps:
- task: GitVersion@5
inputs:
useConfigFile: true
configFilePath: gitversion.yml
updateAssemblyInfo: false
# restore, build and pack the packages
- task: MSBuild@1
displayName: Build Solution
inputs:
solution: Xamarin.Essentials/Xamarin.Essentials.csproj
configuration: Release
msbuildArguments: '/restore /t:Build /p:ContinuousIntegrationBuild=true /p:Deterministic=false'
- task: MSBuild@1
displayName: Pack NuGets
inputs:
solution: Xamarin.Essentials/Xamarin.Essentials.csproj
configuration: Release
msbuildArguments: '/t:Pack /p:PackageVersion=$(GITVERSION.FullSemVer) /p:InformationalVersion=$(GITVERSION.InformationalVersion) /p:PackageOutputPath="$(Build.ArtifactStagingDirectory)/nuget"'
# publish the packages
- task: PublishBuildArtifacts@1
displayName: 'Publish Unsigned NuGets'
inputs:
artifactName: nuget
pathToPublish: '$(Build.ArtifactStagingDirectory)/nuget'