forked from unoplatform/Uno.Xaml-Controls-Gallery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vsts-win-build.yml
114 lines (100 loc) · 3.89 KB
/
.vsts-win-build.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
106
107
108
109
110
111
112
113
114
parameters:
pool: ''
sign: false
jobs:
- job: Windows
pool: ${{ parameters.pool }}
variables:
ANDROID_NDK_HOME: C:\Microsoft\AndroidNDK64\android-ndk-r15c
ANDROID_NDK_PATH: C:\Microsoft\AndroidNDK64\android-ndk-r15c
AndroidNdkDirectory: C:\Microsoft\AndroidNDK64\android-ndk-r15c
steps:
- checkout: self
clean: true
- task: UseDotNet@2
inputs:
packageType: 'runtime'
version: '2.2.0'
- task: nventiveCanaryUpdater@5
condition: startsWith(variables['Build.SourceBranch'], 'refs/heads/canaries')
inputs:
solution: 'XamlControlsGallery.Windows/XamlControlsGallery.sln'
usePrivateFeed: false
useNuGetOrg: true
mergeBranch: true
branchToMerge: 'master'
nugetUpdaterVersion: '2.0.6'
allowDowngrade: true
packageAuthor: 'nventive'
summaryFile: '$(Build.ArtifactStagingDirectory)/Canary.md'
resultFile: '$(Build.ArtifactStagingDirectory)/update_result.json'
- task: GitVersion@4
# Ignore gitversion for forks, until this is fixed:
# https://developercommunity.visualstudio.com/content/problem/284991/public-vsts-previouw-cant-set-build-number-of-pr-b.html
condition: eq(variables['System.PullRequest.IsFork'], 'False')
inputs:
updateAssemblyInfo: false
- task: NuGetToolInstaller@0
inputs:
versionSpec: 4.7.0
checkLatest: false
- powershell: .\build\Install-WindowsSdkISO.ps1 17763
displayName: Install Windows SDK 17763
- task: MSBuild@1
inputs:
solution: build/Build.csproj
msbuildLocationMethod: version
msbuildVersion: latest
msbuildArchitecture: x86
msbuildArguments: "/r"
clean: false
maximumCpuCount: true
restoreNugetPackages: false
logProjectEvents: false
createLogFile: false
- task: MSBuild@1
inputs:
solution: XamlControlsGallery.Windows\XamlControlsGallery.sln
msbuildLocationMethod: version
msbuildVersion: latest
msbuildArchitecture: x86
msbuildArguments: /r /p:Configuration=Release /detailedsummary /m:16 /nr:false "/p:AndroidSigningStorePass=$(nventivekeystore_pwd)" "/p:AndroidSigningKeyAlias=$(nventivekeystore_alias)" "/p:AndroidSigningKeyPass=$(nventivekeystore_aliaspwd)" "/p:PackageVersion=%GITVERSION_FullSemVer%" "/p:InformationalVersion=%GITVERSION_InformationalVersion%" /bl:$(build.artifactstagingdirectory)\build.binlog
clean: false
maximumCpuCount: true
restoreNugetPackages: false
logProjectEvents: false
createLogFile: false
- task: CopyFiles@2
displayName: 'Publish Wasm Binaries'
inputs:
SourceFolder: $(build.sourcesdirectory)/XamlControlsGallery.Wasm/bin/Release/netstandard2.0/dist
Contents: '**/*.*'
TargetFolder: $(build.artifactstagingdirectory)/XamlUIBasics-wasm
CleanTargetFolder: false
OverWrite: false
flattenFolders: false
- task: CopyFiles@2
displayName: 'Publish Android Binaries'
inputs:
SourceFolder: $(build.sourcesdirectory)/XamlControlsGallery.Droid/bin/Release
Contents: '*.apk'
TargetFolder: $(build.artifactstagingdirectory)/XamlUIBasics-android
CleanTargetFolder: false
OverWrite: false
flattenFolders: false
- task: CopyFiles@2
displayName: 'Publish Windows Binaries'
inputs:
SourceFolder: $(build.sourcesdirectory)/XamlControlsGallery.Windows/AppPackages
Contents: '**/*.appx'
TargetFolder: $(build.artifactstagingdirectory)/XamlUIBasics-windows
CleanTargetFolder: false
OverWrite: false
flattenFolders: false
- task: PublishBuildArtifacts@1
# https://developercommunity.visualstudio.com/content/problem/284991/public-vsts-previouw-cant-set-build-number-of-pr-b.html
condition: eq(variables['System.PullRequest.IsFork'], 'False')
inputs:
PathtoPublish: $(build.artifactstagingdirectory)
ArtifactName: universal-samples-drop
ArtifactType: Container