2019-09-05 00:26:26 +08:00
|
|
|
parameters:
|
|
|
|
configuration: 'Release'
|
|
|
|
platform: ''
|
2022-11-10 19:08:19 +08:00
|
|
|
additionalBuildArguments: '-m:2'
|
2019-09-05 00:26:26 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
- job: Build${{ parameters.platform }}${{ parameters.configuration }}
|
|
|
|
displayName: Build ${{ parameters.platform }} ${{ parameters.configuration }}
|
|
|
|
variables:
|
|
|
|
BuildConfiguration: ${{ parameters.configuration }}
|
|
|
|
BuildPlatform: ${{ parameters.platform }}
|
2022-11-11 01:09:25 +08:00
|
|
|
useAllCPUsWhileBuildingPowerToys: $[ne(variables['BuildPlatform'],'arm64')] # Multi processor build for arm64 is broken in the latest pipelines update
|
2021-09-16 07:30:01 +08:00
|
|
|
pool:
|
2022-02-07 22:08:30 +08:00
|
|
|
demands: ImageOverride -equals WinDevVS17-latest
|
2021-09-16 07:30:01 +08: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-09 01:24:33 +08:00
|
|
|
timeoutInMinutes: 120
|
|
|
|
strategy:
|
|
|
|
maxParallel: 10
|
2019-09-05 00:26:26 +08:00
|
|
|
steps:
|
|
|
|
- template: build-powertoys-steps.yml
|
|
|
|
parameters:
|
2020-08-14 04:51:01 +08:00
|
|
|
additionalBuildArguments: ${{ parameters.additionalBuildArguments }}
|
2022-06-28 00:25:25 +08: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')))
|