-
Notifications
You must be signed in to change notification settings - Fork 34
/
.vsts-ci.Linux.yml
48 lines (39 loc) · 1.32 KB
/
.vsts-ci.Linux.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
jobs:
- job: linux
container: unoplatform/wasm-build:3.0
pool:
vmImage: 'ubuntu-latest'
variables:
NUGET_PACKAGES: $(build.sourcesdirectory)/.nuget
DotnetRuntimePath: /usr/share/dotnet
steps:
- checkout: self
clean: true
- 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.WASM/Uno.Playground.WASM.csproj "/p:InformationalVersion=$GITVERSION_INFORMATIONALVERSION" /bl:$(build.artifactstagingdirectory)/linux.binlog
env:
GITVERSION_FullSemVer: $(GITVERSION_FullSemVer)
displayName: 'Build Playground'
- task: CopyFiles@2
displayName: 'Publish Wasm Binaries'
inputs:
SourceFolder: $(build.sourcesdirectory)/src/Uno.Playground.WASM/bin/Release/net9.0/publish/wwwroot
Contents: '**/*.*'
TargetFolder: $(build.artifactstagingdirectory)/wasm
CleanTargetFolder: false
OverWrite: false
flattenFolders: false
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: $(build.artifactstagingdirectory)
ArtifactName: drop
ArtifactType: Container