-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vsts-win-build.yml
59 lines (51 loc) · 2 KB
/
.vsts-win-build.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
parameters:
pool: ''
sign: false
jobs:
- job: Windows
pool: ${{ parameters.pool }}
variables:
ANDROID_NDK_HOME: C:\Microsoft\AndroidNDK64\android-ndk-r15c
ANDROID_NDK_PATH: C:\Microsoft\AndroidNDK64\android-ndk-r15c
AndroidNdkDirectory: C:\Microsoft\AndroidNDK64\android-ndk-r15c
steps:
- checkout: self
clean: true
- task: GitVersion@4
# Ignore gitversion for forks, until this is fixed:
# https://developercommunity.visualstudio.com/content/problem/284991/public-vsts-previouw-cant-set-build-number-of-pr-b.html
condition: eq(variables['System.PullRequest.IsFork'], 'False')
inputs:
updateAssemblyInfo: false
- task: NuGetToolInstaller@0
inputs:
versionSpec: 4.7.0
checkLatest: false
- task: MSBuild@1
inputs:
solution: src\Uno.LottieSamples.sln
msbuildLocationMethod: version
msbuildVersion: latest
msbuildArchitecture: x86
msbuildArguments: /r /p:Configuration=Release /detailedsummary "/p:PackageVersion=%GITVERSION_FullSemVer%" "/p:InformationalVersion=%GITVERSION_InformationalVersion%" # /bl:$(build.artifactstagingdirectory)\build.binlog
clean: false
maximumCpuCount: true
restoreNugetPackages: false
logProjectEvents: false
createLogFile: false
- task: CopyFiles@2
displayName: 'Publish Wasm Binaries'
inputs:
SourceFolder: $(build.sourcesdirectory)/src/Uno.LottieSamples/Uno.LottieSamples.Wasm/bin/Release/netstandard2.0/dist
Contents: '**/*.*'
TargetFolder: $(build.artifactstagingdirectory)/Uno-Lottie-wasm
CleanTargetFolder: false
OverWrite: false
flattenFolders: false
- task: PublishBuildArtifacts@1
# https://developercommunity.visualstudio.com/content/problem/284991/public-vsts-previouw-cant-set-build-number-of-pr-b.html
condition: eq(variables['System.PullRequest.IsFork'], 'False')
inputs:
PathtoPublish: $(build.artifactstagingdirectory)
ArtifactName: universal-samples-drop
ArtifactType: Container