mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-18 21:48:12 +08:00
31e3c46641
* Make sure we run CG component detection on main I believe that there is a hidden "default branch" setting in Azure DevOps, and ours is set to "master". CG only attempts to automatically inject to builds off the default branch... and because we're a GitHub repo running builds in AzDO we _can't change what the default branch is_. Oops. Copied from microsoft/terminal#e0bd76b30 * spellbot got mad at me
31 lines
1.2 KiB
YAML
31 lines
1.2 KiB
YAML
parameters:
|
|
configuration: 'Release'
|
|
platform: ''
|
|
additionalBuildArguments: '-m'
|
|
|
|
jobs:
|
|
- job: Build${{ parameters.platform }}${{ parameters.configuration }}
|
|
displayName: Build ${{ parameters.platform }} ${{ parameters.configuration }}
|
|
variables:
|
|
BuildConfiguration: ${{ parameters.configuration }}
|
|
BuildPlatform: ${{ parameters.platform }}
|
|
pool:
|
|
demands: ImageOverride -equals WinDevVS17-latest
|
|
${{ 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
|
|
timeoutInMinutes: 120
|
|
strategy:
|
|
maxParallel: 10
|
|
steps:
|
|
- template: build-powertoys-steps.yml
|
|
parameters:
|
|
additionalBuildArguments: ${{ parameters.additionalBuildArguments }}
|
|
|
|
# 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')))
|