-
Notifications
You must be signed in to change notification settings - Fork 34
/
.vsts-ci.yml
66 lines (54 loc) · 1.72 KB
/
.vsts-ci.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
jobs:
- template: .vsts-ci.Linux.yml
- job: Desktop
pool:
vmImage: 'windows-2022'
workspace:
clean: all
steps:
- checkout: self
clean: true
lfs: true
- task: UseDotNet@2
displayName: 'Use .NET Core sdk'
inputs:
packageType: sdk
version: 2.1.x
- task: UseDotNet@2
displayName: 'Use .NET SDK'
inputs:
packageType: sdk
version: 9.0.100
includePreviewVersions: true
- template: build/canary-updater.yml
- template: build/gitversion.yml
- script: |
cd $(build.sourcesdirectory)
dotnet publish -c Release $(build.sourcesdirectory)/src/Uno.Playground-playground-only.slnf "/p:InformationalVersion=$GITVERSION_INFORMATIONALVERSION" /bl:$(build.artifactstagingdirectory)/playground.binlog
displayName: 'Build Playground'
- task: MSBuild@1
inputs:
solution: src\Uno.Playground-api-only.slnf
msbuildLocationMethod: version
msbuildVersion: latest
msbuildArchitecture: x86
msbuildArguments: /r /p:CheckExclusions=True /p:Configuration=Release /bl:$(build.artifactstagingdirectory)\build.binlog
clean: false
maximumCpuCount: true
restoreNugetPackages: false
logProjectEvents: false
createLogFile: false
- task: DotNetCoreCLI@2
inputs:
command: publish
publishWebProjects: false
projects: src\Uno.Playground.Api\Uno.Playground.Api.csproj
arguments: --configuration Release --output $(Build.ArtifactStagingDirectory)/api
zipAfterPublish: true
modifyOutputPath: true
- task: PublishBuildArtifacts@1
condition: always()
inputs:
PathtoPublish: $(build.artifactstagingdirectory)
ArtifactName: drop
ArtifactType: Container