-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy path.vsts-ci.yml
More file actions
64 lines (50 loc) · 1.65 KB
/
.vsts-ci.yml
File metadata and controls
64 lines (50 loc) · 1.65 KB
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
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 SDK'
inputs:
packageType: sdk
version: 10.0.105
includePreviewVersions: true
- task: UseDotNet@2
displayName: 'Install .NET Core 2.1 runtime (for Azure Functions v1 SDK)'
inputs:
packageType: runtime
version: 2.1.x
- pwsh: |
dotnet workload install wasm-tools
displayName: 'Install WASM workloads'
retryCountOnTaskFailure: 3
- template: build/canary-updater.yml
- template: build/gitversion.yml
- script: |
cd $(build.sourcesdirectory)
dotnet publish -c Release src/Uno.Playground/Uno.Playground.csproj -f net10.0-browserwasm "/p:InformationalVersion=%GITVERSION_INFORMATIONALVERSION%" /bl:$(build.artifactstagingdirectory)/playground.binlog
displayName: 'Build Playground'
- script: |
cd $(build.sourcesdirectory)
dotnet build -c Release src/Uno.Playground.Api/Uno.Playground.Api.csproj /bl:$(build.artifactstagingdirectory)/build.binlog
displayName: 'Build API'
- 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