forked from unoplatform/Uno.Playground
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vsts-ci.Linux.yml
85 lines (71 loc) · 2.3 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
jobs:
- job: linux
container: unoplatform/wasm-build:2.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 Core runtime 2.2.x'
inputs:
packageType: runtime
version: 2.2.x
installationPath: '$(DotnetRuntimePath)'
- task: nventiveCanaryUpdater@5
displayName: 'Canary Update'
condition: startsWith(variables['Build.SourceBranch'], 'refs/heads/canaries')
inputs:
solution: src/Calculator.sln
branchToMerge: uno
summaryFile: '$(Build.ArtifactStagingDirectory)/Canary.md'
resultFile: '$(Build.ArtifactStagingDirectory)/result.json'
nugetUpdaterVersion: 2.0.6
packageAuthor: nventive
- task: UseDotNet@2
displayName: 'Use .Net Core runtime 2.1.0'
inputs:
packageType: runtime
version: 2.1.0
installationPath: '$(DotnetRuntimePath)'
- task: GitVersion@5
inputs:
useConfigFile: true
configFilePath: gitversion.yml
- bash: |
cd ~
git clone https://github.com/emscripten-core/emsdk
cd emsdk
./emsdk install sdk-1.39.11
./emsdk activate sdk-1.39.11
displayName: 'Setup Emscripten'
- task: UseDotNet@2
displayName: 'Use .NET Core sdk'
inputs:
packageType: sdk
version: 3.1.x
installationPath: '$(DotnetRuntimePath)'
- script: |
source ~/emsdk/emsdk_env.sh
cd $(build.sourcesdirectory)
msbuild /r /p:Configuration=Release $(build.sourcesdirectory)/src/Uno.Playground.WASM/Uno.Playground.WASM.csproj "/p:InformationalVersion=$GITVERSION_INFORMATIONALVERSION"
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/netstandard2.0/dist
Contents: '**/*.*'
TargetFolder: $(build.artifactstagingdirectory)/wasm
CleanTargetFolder: false
OverWrite: false
flattenFolders: false
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: $(build.artifactstagingdirectory)
ArtifactName: drop
ArtifactType: Container