101 строка
3.7 KiB
YAML
101 строка
3.7 KiB
YAML
parameters:
|
|
poolName: ''
|
|
UNO_UWP_BUILD: ''
|
|
XAML_FLAVOR_BUILD: ''
|
|
|
|
jobs:
|
|
- job: netcoremobile_win_build
|
|
displayName: '.NET Mobile Package Binaries'
|
|
timeoutInMinutes: 90
|
|
cancelTimeoutInMinutes: 1
|
|
|
|
pool: ${{ parameters.poolName }}
|
|
|
|
variables:
|
|
CombinedConfiguration: Release|Any CPU
|
|
CI_Build: true
|
|
|
|
# Disable trimming for packages creation
|
|
PublishTrimmed: false
|
|
|
|
# Disable AOT for this job
|
|
RunAOTCompilation: false
|
|
|
|
# Use pre-defined local nuget cache for restore
|
|
NUGET_PACKAGES: 'C:\NugetPackages'
|
|
|
|
UNO_UWP_BUILD: ${{ parameters.UNO_UWP_BUILD }}
|
|
XAML_FLAVOR_BUILD: ${{ parameters.XAML_FLAVOR_BUILD }}
|
|
|
|
steps:
|
|
- checkout: self
|
|
clean: true
|
|
|
|
- template: templates/nuget-cache.yml
|
|
parameters:
|
|
nugetPackages: $(NUGET_PACKAGES)
|
|
|
|
- template: templates/download-winui-converted-tree.yml
|
|
|
|
- template: templates/gitversion.yml
|
|
|
|
- template: templates/dotnet-mobile-install-windows.yml
|
|
|
|
# This task is required to run in separately to avoid hitting targets file
|
|
# caching issues with msbuild 17.3 or later
|
|
- task: DotNetCoreCLI@2
|
|
inputs:
|
|
workingDirectory: Build
|
|
arguments: Uno.UI.Build.csproj /nr:false /r /m /t:PrepareBuildAssets "/p:CombinedConfiguration=$(CombinedConfiguration)" /detailedsummary /bl:$(build.artifactstagingdirectory)\build-$(GitVersion.FullSemVer)-netcoremobile-prepare-$(XAML_FLAVOR_BUILD).binlog
|
|
displayName: Preparing assets
|
|
|
|
- task: DotNetCoreCLI@2
|
|
inputs:
|
|
workingDirectory: Build
|
|
arguments: Uno.UI.Build.csproj /r /m /t:BuildCIMobile "/p:CombinedConfiguration=$(CombinedConfiguration)" /detailedsummary /bl:$(build.artifactstagingdirectory)\build-$(GitVersion.FullSemVer)-netcoremobile-$(XAML_FLAVOR_BUILD).binlog
|
|
displayName: Building package binaries
|
|
|
|
- task: MSBuild@1
|
|
inputs:
|
|
solution: build/filters/Uno.UI-packages-windows.slnf
|
|
msbuildLocationMethod: version
|
|
msbuildVersion: latest
|
|
msbuildArchitecture: x86
|
|
msbuildArguments: /r /m /v:m /p:Configuration=Release /detailedsummary /bl:$(build.artifactstagingdirectory)/build-$(GitVersion.FullSemVer)-windows-$(XAML_FLAVOR_BUILD)-binaries.binlog
|
|
clean: false
|
|
restoreNugetPackages: false
|
|
logProjectEvents: false
|
|
createLogFile: false
|
|
displayName: Building WinAppSDK/UWP package binaries
|
|
|
|
- task: MSBuild@1
|
|
condition: and(succeeded(), eq(variables.UNO_UWP_BUILD, false))
|
|
inputs:
|
|
solution: src/AddIns/Uno.WinUI.Graphics3DGL/Uno.WinUI.Graphics3DGL.csproj
|
|
msbuildLocationMethod: version
|
|
msbuildVersion: latest
|
|
msbuildArchitecture: x86
|
|
msbuildArguments: /r /m /v:m /p:Configuration=Release /p:BuildGraphics3DGLForWindows=true /p:PackageVersion=$(GITVERSION.SemVer) /p:InformationalVersion=$(GITVERSION.InformationalVersion) /p:PackageOutputPath=$(build.artifactstagingdirectory)\vslatest-netcoremobile /detailedsummary /bl:$(build.artifactstagingdirectory)/build-$(GitVersion.FullSemVer)-graphics3dgl-windows-$(XAML_FLAVOR_BUILD)-binaries.binlog
|
|
clean: false
|
|
restoreNugetPackages: false
|
|
logProjectEvents: false
|
|
createLogFile: false
|
|
displayName: Building WinAppSDK Graphics3DGL package binaries
|
|
|
|
- template: templates/copy-package-assets.yml
|
|
|
|
- task: ArchiveFiles@2
|
|
inputs:
|
|
rootFolderOrFile: $(build.sourcesdirectory)\build-artifacts\bin-$(XAML_FLAVOR_BUILD)
|
|
includeRootFolder: false
|
|
archiveType: 'zip'
|
|
archiveFile: '$(Build.ArtifactStagingDirectory)/windows-netcoremobile-bin-$(XAML_FLAVOR_BUILD).zip'
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
condition: always()
|
|
retryCountOnTaskFailure: 3
|
|
inputs:
|
|
PathtoPublish: $(build.artifactstagingdirectory)
|
|
ArtifactName: NugetPackages-Artifacts-netcoremobile-$(XAML_FLAVOR_BUILD)
|
|
ArtifactType: Container
|