forked from zezba9000/RayTraceBenchmark
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.vsts-ci.yml
131 lines (106 loc) · 3.81 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
jobs:
- job: Windows
pool:
vmImage: windows-2022
variables:
Solution: CSharp\Uno\Uno.RayTraceBenchmark.sln
NUGET_PACKAGES: $(Agent.WorkFolder)\.nuget
steps:
- ${{ if startsWith(variables['Build.SourceBranch'], 'refs/heads/canaries') }}:
- template: .vsts-ci.canaries.yml
parameters:
Solution: $(Solution)
ArtifactName: Canaries
- task: UseDotNet@2
inputs:
packageType: 'sdk'
version: '8.0.203'
- task: gitversion/setup@0
retryCountOnTaskFailure: 3
inputs:
versionSpec: '5.10.3'
displayName: 'Install GitVersion'
- task: gitversion/execute@0
retryCountOnTaskFailure: 3
inputs:
useConfigFile: true
configFilePath: 'gitversion.yml'
displayName: 'Calculate SemVer'
- pwsh: |
echo "##vso[task.setvariable variable=JAVA_HOME]$(JAVA_HOME_11_X64)"
echo "##vso[task.setvariable variable=JavaSdkDirectory]$(JAVA_HOME_11_X64)"
displayName: Select JDK 11
- powershell: |
& dotnet tool update --global uno.check --version 1.20.2 --add-source https://api.nuget.org/v3/index.json
& uno-check -v --ci --non-interactive --fix --skip androidsdk --skip androidemulator --skip xcode --skip gtk3 --skip vswin --skip vsmac
displayName: Install .NET Workloads
errorActionPreference: continue
ignoreLASTEXITCODE: true
retryCountOnTaskFailure: 3
- pwsh: |
dotnet build -f net8.0-android -c Release "-p:InformationalVersion=$(GitVersion.InformationalVersion)" "$(Build.SourcesDirectory)\CSharp\Uno\RayTraceBenchmark\RayTraceBenchmark\Uno.RayTraceBenchmark.csproj" /bl:$(Build.SourcesDirectory)\build\wasm-aot.binlog
- task: PublishBuildArtifacts@1
condition: always()
displayName: Publish Logs Artifacts
inputs:
pathToPublish: $(Build.SourcesDirectory)/build
artifactType: container
artifactName: Logs
- job: Linux
container: unoplatform/wasm-build:3.0
pool:
vmImage: 'ubuntu-latest'
variables:
NUGET_PACKAGES: $(Build.SourcesDirectory)/.nuget
Solution:
steps:
- task: UseDotNet@2
inputs:
packageType: 'sdk'
version: '8.0.203'
- ${{ if startsWith(variables['Build.SourceBranch'], 'refs/heads/canaries') }}:
- template: .vsts-ci.canaries.yml
parameters:
Solution: $(Build.SourcesDirectory)/CSharp/Uno/Uno.RayTraceBenchmark.sln
ArtifactName: Canary-AOT
- task: UseDotNet@2
displayName: 'Use .Net Core runtime 5.0.3'
inputs:
packageType: runtime
version: 5.0.3
- task: gitversion/setup@0
inputs:
versionSpec: '5.6.8'
- task: gitversion/execute@0
inputs:
updateAssemblyInfo: 'False'
useConfigFile: true
configFilePath: gitversion.yml
displayName: Use GitVersion
- task: UseDotNet@2
inputs:
packageType: sdk
version: 5.0.203
- bash: |
dotnet build -f net8.0-browserwasm -c Release "/p:InformationalVersion=$(GitVersion.InformationalVersion)" "$(Build.SourcesDirectory)/CSharp/Uno/RayTraceBenchmark/RayTraceBenchmark/Uno.RayTraceBenchmark.csproj" /bl:$(Build.SourcesDirectory)/build/wasm-aot.binlog
- task: CopyFiles@2
displayName: 'Publish Wasm Binaries'
inputs:
SourceFolder: '$(Build.SourcesDirectory)/CSharp/Uno/RayTraceBenchmark/RayTraceBenchmark/bin/Release/net8.0-browserwasm/dist'
Contents: '**/*.*'
TargetFolder: $(Build.ArtifactStagingDirectory)/wasm
CleanTargetFolder: false
OverWrite: false
flattenFolders: false
- task: PublishBuildArtifacts@1
condition: always()
displayName: Publish Logs Artifacts
inputs:
pathToPublish: $(Build.SourcesDirectory)/build
artifactType: container
artifactName: Logs
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: $(Build.ArtifactStagingDirectory)
ArtifactName: aot-drop
ArtifactType: Container