-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy path.vsts-ci.Linux.yml
More file actions
58 lines (48 loc) · 1.75 KB
/
.vsts-ci.Linux.yml
File metadata and controls
58 lines (48 loc) · 1.75 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
jobs:
- job: linux
pool:
vmImage: 'ubuntu-latest'
variables:
NUGET_PACKAGES: $(build.sourcesdirectory)/.nuget
steps:
- checkout: self
clean: true
- template: build/host-cleanup-linux.yml
- task: UseDotNet@2
displayName: 'Use .NET SDK'
retryCountOnTaskFailure: 3
inputs:
packageType: sdk
version: 10.0.105
includePreviewVersions: true
- bash: |
dotnet tool update --global uno.check --prerelease --add-source https://api.nuget.org/v3/index.json
displayName: 'Install uno-check'
retryCountOnTaskFailure: 3
- bash: |
uno-check --verbose --ci --non-interactive --fix --skip gtk3 --skip androidemulator --skip dotnetnewunotemplates --skip unosdk --skip openjdk
displayName: 'Install .NET Workloads'
retryCountOnTaskFailure: 3
- template: build/canary-updater.yml
- template: build/gitversion.yml
- bash: |
cd $(build.sourcesdirectory)
dotnet publish -c Release src/Uno.Playground/Uno.Playground.csproj -f net10.0-browserwasm "/p:InformationalVersion=$GITVERSION_INFORMATIONALVERSION" -o "$(build.artifactstagingdirectory)/wasm-publish" -bl:$(build.artifactstagingdirectory)/linux.binlog
env:
GITVERSION_FullSemVer: $(GITVERSION_FullSemVer)
displayName: 'Build Playground'
- task: CopyFiles@2
displayName: 'Publish Wasm Binaries'
inputs:
SourceFolder: $(build.artifactstagingdirectory)/wasm-publish/wwwroot
Contents: '**/*.*'
TargetFolder: $(build.artifactstagingdirectory)/wasm
CleanTargetFolder: false
OverWrite: false
flattenFolders: false
- task: PublishBuildArtifacts@1
condition: always()
inputs:
PathtoPublish: $(build.artifactstagingdirectory)
ArtifactName: drop
ArtifactType: Container