forked from CommunityToolkit/MVVM-Samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
46 lines (38 loc) · 1.11 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
trigger:
- master
pr:
- master
pool:
vmImage: 'windows-latest'
variables:
solutionUwp: 'samples/MvvmSampleUwp.sln'
solutionXf: 'samples/MvvmSampleUwp.sln'
buildPlatform: 'x86|x64|ARM|ARM64'
buildConfiguration: 'Release'
appxPackageDir: '$(build.artifactStagingDirectory)\AppxPackages\\'
steps:
- task: NuGetToolInstaller@1
displayName: Install NuGet tool
- task: CmdLine@2
inputs:
script: 'git submodule update --init --recursive'
- task: NuGetCommand@2
displayName: Restore solution(s)
inputs:
command: 'restore'
restoreSolution: '**/*.sln'
feedsToUse: 'config'
nugetConfigPath: ./samples/nuget.config
- task: VSBuild@1
displayName: Build UWP solution
inputs:
platform: 'x86'
solution: '$(solutionUwp)'
configuration: '$(buildConfiguration)'
msbuildArgs: '/p:AppxBundlePlatforms="$(buildPlatform)" /p:AppxPackageDir="$(appxPackageDir)" /p:AppxBundle=Always /p:UapAppxPackageBuildMode=StoreUpload'
- task: VSBuild@1
displayName: Build Xamarin.Forms solution
inputs:
platform: 'Any CPU'
solution: '$(solutionXf)'
configuration: '$(buildConfiguration)'