Uno.SkiaSharp/.vsts-windows-build.yml

70 строки
2.2 KiB
YAML

parameters:
pool: ''
jobs:
- job: Windows
dependsOn: SkiaLib_WebAssembly
pool:
vmImage: 'windows-2019'
variables:
NUGET_PACKAGES: $(build.sourcesdirectory)/.nuget
steps:
- checkout: self
clean: true
- task: GitVersion@5
inputs:
useConfigFile: true
configFilePath: gitversion.yml
- task: DownloadBuildArtifacts@0
inputs:
artifactName: canvaskit_wasm
downloadPath: '$(build.sourcesdirectory)\externals\skia\out'
- task: MSBuild@1
inputs:
solution: $(build.sourcesdirectory)/source/SkiaSharp.Views/SkiaSharp.Views.Uno/SkiaSharp.Views.Uno.Wasm.csproj
msbuildLocationMethod: version
msbuildVersion: latest
msbuildArchitecture: x86
msbuildArguments: /r /p:Configuration=Release /detailedsummary "/p:PackageOutputPath=$(build.artifactstagingdirectory)\nuget" "/p:PackageVersion=$(GITVERSION.FullSemVer)" "/p:InformationalVersion=$(GITVERSION.InformationalVersion)" /detailedsummary
clean: false
maximumCpuCount: true
restoreNugetPackages: false
logProjectEvents: false
createLogFile: false
- task: MSBuild@1
inputs:
solution: $(build.sourcesdirectory)/source/SkiaSharp.Views/SkiaSharp.Views.Uno/SkiaSharp.Views.Uno.csproj
msbuildLocationMethod: version
msbuildVersion: latest
msbuildArchitecture: x86
msbuildArguments: /r /p:Configuration=Release /detailedsummary "/p:PackageOutputPath=$(build.artifactstagingdirectory)\nuget" "/p:PackageVersion=$(GITVERSION.FullSemVer)" "/p:InformationalVersion=$(GITVERSION.InformationalVersion)" /detailedsummary
clean: false
maximumCpuCount: true
restoreNugetPackages: false
logProjectEvents: false
createLogFile: false
- task: CopyFiles@2
displayName: 'Publish Nuget Packages'
inputs:
SourceFolder: $(build.sourcesdirectory)/source
Contents: '**/Uno.SkiaSharp.*.nupkg'
TargetFolder: $(build.artifactstagingdirectory)/skiasharp-wasm
CleanTargetFolder: false
OverWrite: false
flattenFolders: false
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: $(build.artifactstagingdirectory)
ArtifactName: skiasharp-drop
ArtifactType: Container