forked from unoplatform/Uno.Xaml-Controls-Gallery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vsts-macOS-build.yml
62 lines (55 loc) · 1.89 KB
/
.vsts-macOS-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
jobs:
- job: macOS
pool:
vmImage: macOS-10.15
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: 'uno'
nugetUpdaterVersion: '2.0.6'
allowDowngrade: true
packageAuthor: 'nventive'
summaryFile: '$(Build.ArtifactStagingDirectory)/Canary.md'
resultFile: '$(Build.ArtifactStagingDirectory)/update_result.json'
- task: UseGitVersion@5
inputs:
versionSpec: '5.x'
updateAssemblyInfo: false
configFilePath: gitversion.yml
- task: MSBuild@1
inputs:
solution: '$(build.sourcesdirectory)/XamlControlsGallery.macOS/XamlControlsGallery.macOS.csproj'
msbuildLocationMethod: version
msbuildVersion: latest
msbuildArchitecture: x86
msbuildArguments: /r /p:Configuration=Release /detailedsummary # "/p:PackageVersion=%GITVERSION_FullSemVer%" "/p:InformationalVersion=%GITVERSION_InformationalVersion%"
clean: false
maximumCpuCount: true
restoreNugetPackages: false
logProjectEvents: true
createLogFile: true
- task: CopyFiles@2
displayName: 'Publish macOS Binaries'
inputs:
SourceFolder: $(build.sourcesdirectory)/XamlControlsGallery.macOS/bin/Release/XamlControlsGallery.macOS.app
Contents: '*.ipa'
TargetFolder: $(build.artifactstagingdirectory)/XamlUIBasics-macOS
CleanTargetFolder: false
OverWrite: false
flattenFolders: false
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: $(build.artifactstagingdirectory)
ArtifactName: universal-samples-drop
ArtifactType: Container