2020-02-14 17:44:43 +01:00
|
|
|
parameters:
|
2020-11-05 22:28:40 +01:00
|
|
|
- name: BuildConfiguration
|
|
|
|
default: release
|
|
|
|
- name: BuildPlatform
|
|
|
|
default: any cpu
|
|
|
|
- name: Architecture
|
|
|
|
default: x64
|
|
|
|
- name: parentJob
|
|
|
|
default: ''
|
|
|
|
|
2020-02-14 17:44:43 +01:00
|
|
|
jobs:
|
|
|
|
- job: build_windows_${{ parameters.Architecture }}
|
|
|
|
displayName: Build Windows - ${{ parameters.Architecture }}
|
|
|
|
condition: succeeded()
|
2020-06-09 03:06:48 +02:00
|
|
|
dependsOn: ${{ parameters.parentJob }}
|
2020-02-14 17:44:43 +01:00
|
|
|
pool:
|
|
|
|
vmImage: windows-latest
|
|
|
|
variables:
|
2020-08-10 18:07:58 +02:00
|
|
|
runCodesignValidationInjection: false
|
2020-02-14 17:44:43 +01:00
|
|
|
BuildConfiguration: ${{ parameters.BuildConfiguration }}
|
|
|
|
BuildPlatform: ${{ parameters.BuildPlatform }}
|
|
|
|
Architecture: ${{ parameters.Architecture }}
|
|
|
|
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- checkout: self
|
|
|
|
clean: true
|
|
|
|
|
|
|
|
- template: SetVersionVariables.yml
|
|
|
|
parameters:
|
|
|
|
ReleaseTagVar: $(ReleaseTagVar)
|
|
|
|
|
|
|
|
- template: insert-nuget-config-azfeed.yml
|
|
|
|
|
2020-11-05 22:28:40 +01:00
|
|
|
- template: cloneToOfficialPath.yml
|
2020-02-14 17:44:43 +01:00
|
|
|
|
|
|
|
- powershell: |
|
|
|
|
|
|
|
|
$runtime = switch ($env:Architecture)
|
|
|
|
{
|
|
|
|
"x64" { "win7-x64" }
|
|
|
|
"x86" { "win7-x86" }
|
|
|
|
"arm" { "win-arm"}
|
|
|
|
"arm64" { "win-arm64" }
|
|
|
|
"fxdependent" { "fxdependent" }
|
|
|
|
"fxdependentWinDesktop" { "fxdependent-win-desktop" }
|
|
|
|
}
|
|
|
|
|
|
|
|
tools/releaseBuild/Images/microsoft_powershell_windowsservercore/PowerShellPackage.ps1 -location '$(PowerShellRoot)' -destination '$(Build.ArtifactStagingDirectory)/Symbols_$(Architecture)' -Runtime $runtime -ReleaseTag '$(ReleaseTagVar)' -Symbols
|
|
|
|
displayName: 'Build Windows Universal - $(Architecture) Symbols zip'
|
|
|
|
|
|
|
|
- powershell: |
|
|
|
|
$packageName = (Get-ChildItem '$(Build.ArtifactStagingDirectory)\Symbols_$(Architecture)').FullName
|
|
|
|
$vstsCommandString = "vso[artifact.upload containerfolder=results;artifactname=results]$packageName"
|
|
|
|
Write-Host ("sending " + $vstsCommandString)
|
|
|
|
Write-Host "##$vstsCommandString"
|
|
|
|
displayName: Upload symbols package
|
|
|
|
|
|
|
|
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
|
|
|
|
displayName: 'Component Detection'
|
|
|
|
inputs:
|
|
|
|
sourceScanPath: '$(Build.SourcesDirectory)'
|
|
|
|
snapshotForceEnabled: true
|