-
-
Notifications
You must be signed in to change notification settings - Fork 107
/
ci-pancakes.yml
105 lines (89 loc) · 3.48 KB
/
ci-pancakes.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
99
100
101
102
103
104
105
variables:
MONO_VERSION: 6_8_0
XCODE_VERSION: 11.3
NETCORE_VERSION: '3.1.x'
# Defines that a commit to the master branch should trigger this build
trigger:
branches:
include:
- master
paths:
exclude:
- README.md
- images/*
- ci-pancakes.yml
- cd-pancakes.yml
# Defines that PRs against this branch should also trigger this build
pr:
- master
jobs:
- job: build_windows
displayName: Build Windows Library
pool:
vmImage: windows-2019
steps:
- task: MSBuild@1
displayName: Build Solution
inputs:
solution: src/Xamarin.Forms.PancakeView.Multi/Xamarin.Forms.PancakeView.Multi.csproj
configuration: Release
msbuildArguments: '/restore /t:Build /p:ContinuousIntegrationBuild=true /p:Deterministic=false'
- job: build_macos
displayName: Build macOS Library
pool:
vmImage: macos-10.14
steps:
# make sure to select the correct Xamarin and mono
- 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
# restore, build and pack the packages
- task: UseDotNet@2
displayName: 'Use .Net Core sdk'
inputs:
version: $(NETCORE_VERSION)
includePreviewVersions: false
- task: MSBuild@1
displayName: Build Solution
inputs:
solution: src/Xamarin.Forms.PancakeView.Multi/Xamarin.Forms.PancakeView.Multi.csproj
configuration: Release
msbuildArguments: '/restore /t:Build /p:ContinuousIntegrationBuild=true /p:Deterministic=false'
# steps:
# - task: UseDotNet@2
# displayName: 'Use .Net Core sdk 3.0.x'
# inputs:
# version: 3.0.x
# - task: NuGetToolInstaller@0
# displayName: 'Use NuGet 5.4'
# inputs:
# versionSpec: 5.4
# - task: NuGetCommand@2
# displayName: 'NuGet restore'
# inputs:
# restoreSolution: 'src/**/*.sln'
# - task: DotNetCoreCLI@2
# displayName: 'dotnet restore'
# inputs:
# command: restore
# projects: src/**/*.sln
# # - script: 'echo ''##vso[task.setvariable variable=MD_APPLE_SDK_ROOT;]''/Applications/Xcode_$(XCodeVersion).app;sudo xcode-select --switch /Applications/Xcode_$(XCodeVersion).app/Contents/Developer'
# # displayName: 'Update XCode version'
# # - script: 'sudo $AGENT_HOMEDIRECTORY/scripts/select-xamarin-sdk.sh $(MonoVersion)'
# # displayName: 'Select Xamarin SDK'
# # - script: |
# # echo "Setting mono version"
# # sudo xcodebuild -showsdks
# # SYMLINK=$(MonoVersion)
# # MONOPREFIX=/Library/Frameworks/Mono.framework/Versions/$SYMLINK
# # echo "##vso[task.setvariable variable=DYLD_FALLBACK_LIBRARY_PATH;]$MONOPREFIX/lib:/lib:/usr/lib:$DYLD_LIBRARY_FALLBACK_PATH"
# # echo "##vso[task.setvariable variable=PKG_CONFIG_PATH;]$MONOPREFIX/lib/pkgconfig:$MONOPREFIX/share/pkgconfig:$PKG_CONFIG_PATH"
# # echo "##vso[task.setvariable variable=PATH;]$MONOPREFIX/bin:$PATH"
# # displayName: 'Fix Mono version'
# - task: MSBuild@1
# displayName: 'Build solution'
# inputs:
# solution: src/Xamarin.Forms.PancakeView.Multi/Xamarin.Forms.PancakeView.Multi.csproj
# msbuildArguments: '/t:restore;build /p:PackageOutputPath=$(build.artifactstagingdirectory)'
# clean: true