mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-15 11:17:53 +01:00
We are no longer exclusively using one organization named "ms" and one organization not named "ms". This change flips the sense of the organization comparison so the `OSS` agents can be used for every collection except very specifically the Microsoft one. I also switched to using its ID.
44 lines
1.7 KiB
YAML
44 lines
1.7 KiB
YAML
parameters:
|
|
- name: configuration
|
|
type: string
|
|
default: 'Release'
|
|
- name: platform
|
|
type: string
|
|
default: 'x64'
|
|
- name: additionalBuildArguments
|
|
type: string
|
|
default: '-p:RestorePackagesConfig=true -m'
|
|
- name: enableCaching
|
|
type: boolean
|
|
default: false
|
|
|
|
jobs:
|
|
- job: Build${{ parameters.platform }}${{ parameters.configuration }}
|
|
displayName: Build ${{ parameters.platform }} ${{ parameters.configuration }}
|
|
dependsOn: Precheck
|
|
condition: and(succeeded(),ne(dependencies.Precheck.outputs['verifyBuildRequest.skipBuild'], 'Yes'))
|
|
variables:
|
|
BuildConfiguration: ${{ parameters.configuration }}
|
|
BuildPlatform: ${{ parameters.platform }}
|
|
NUGET_RESTORE_MSBUILD_ARGS: /p:Platform=${{ parameters.platform }} # Required for nuget to work due to self contained
|
|
NODE_OPTIONS: --max_old_space_size=16384
|
|
pool:
|
|
demands: ImageOverride -equals SHINE-VS17-Latest
|
|
${{ if eq(variables['System.CollectionId'], 'cb55739e-4afe-46a3-970f-1b49d8ee7564') }}:
|
|
name: SHINE-INT-L
|
|
${{ else }}:
|
|
name: SHINE-OSS-L
|
|
timeoutInMinutes: 120
|
|
strategy:
|
|
maxParallel: 10
|
|
steps:
|
|
- template: build-powertoys-steps.yml
|
|
parameters:
|
|
additionalBuildArguments: ${{ parameters.additionalBuildArguments }}
|
|
enableCaching: ${{ parameters.enableCaching }}
|
|
|
|
# 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'))) |