2019-09-04 18:26:26 +02:00
|
|
|
parameters:
|
|
|
|
|
configuration: 'Release'
|
|
|
|
|
platform: ''
|
2022-11-14 10:38:25 -08:00
|
|
|
additionalBuildArguments: '-m'
|
2019-09-04 18:26:26 +02:00
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
- job: Build${{ parameters.platform }}${{ parameters.configuration }}
|
|
|
|
|
displayName: Build ${{ parameters.platform }} ${{ parameters.configuration }}
|
|
|
|
|
variables:
|
|
|
|
|
BuildConfiguration: ${{ parameters.configuration }}
|
|
|
|
|
BuildPlatform: ${{ parameters.platform }}
|
2022-12-14 13:37:23 +01:00
|
|
|
NUGET_RESTORE_MSBUILD_ARGS: /p:Platform=${{ parameters.platform }} # Required for nuget to work due to self contained
|
2021-09-15 18:30:01 -05:00
|
|
|
pool:
|
2022-02-07 06:08:30 -08:00
|
|
|
demands: ImageOverride -equals WinDevVS17-latest
|
2021-09-15 18:30:01 -05:00
|
|
|
${{ if eq(variables['System.CollectionUri'], 'https://dev.azure.com/ms/') }}:
|
|
|
|
|
name: WinDevPoolOSS-L
|
|
|
|
|
${{ if ne(variables['System.CollectionUri'], 'https://dev.azure.com/ms/') }}:
|
|
|
|
|
name: WinDevPool-L
|
2020-09-08 10:24:33 -07:00
|
|
|
timeoutInMinutes: 120
|
|
|
|
|
strategy:
|
|
|
|
|
maxParallel: 10
|
2019-09-04 18:26:26 +02:00
|
|
|
steps:
|
|
|
|
|
- template: build-powertoys-steps.yml
|
|
|
|
|
parameters:
|
2020-08-13 13:51:01 -07:00
|
|
|
additionalBuildArguments: ${{ parameters.additionalBuildArguments }}
|
2022-06-27 11:25:25 -05:00
|
|
|
|
|
|
|
|
# It appears that the Component Governance build task that gets automatically injected stopped working
|
|
|
|
|
# when we renamed our main branch.
|
|
|
|
|
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
|
|
|
|
|
displayName: 'Component Detection'
|
|
|
|
|
condition: and(succeededOrFailed(), not(eq(variables['Build.Reason'], 'PullRequest')))
|