2019-09-04 18:26:26 +02:00
|
|
|
parameters:
|
2024-01-15 13:45:28 -08:00
|
|
|
- name: configuration
|
|
|
|
|
type: string
|
|
|
|
|
default: 'Release'
|
|
|
|
|
- name: platform
|
|
|
|
|
type: string
|
2024-03-22 03:29:14 -07:00
|
|
|
default: 'x64'
|
2024-01-15 13:45:28 -08:00
|
|
|
- name: additionalBuildArguments
|
|
|
|
|
type: string
|
2024-03-22 03:29:14 -07:00
|
|
|
default: '-p:RestorePackagesConfig=true -m'
|
2024-01-15 13:45:28 -08:00
|
|
|
- name: enableCaching
|
|
|
|
|
type: boolean
|
|
|
|
|
default: false
|
2019-09-04 18:26:26 +02:00
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
- job: Build${{ parameters.platform }}${{ parameters.configuration }}
|
|
|
|
|
displayName: Build ${{ parameters.platform }} ${{ parameters.configuration }}
|
2023-11-14 10:26:05 -05:00
|
|
|
dependsOn: Precheck
|
|
|
|
|
condition: and(succeeded(),ne(dependencies.Precheck.outputs['verifyBuildRequest.skipBuild'], 'Yes'))
|
2019-09-04 18:26:26 +02:00
|
|
|
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
|
2022-12-16 18:46:07 +01:00
|
|
|
NODE_OPTIONS: --max_old_space_size=16384
|
2021-09-15 18:30:01 -05:00
|
|
|
pool:
|
2023-09-11 14:33:12 -05:00
|
|
|
demands: ImageOverride -equals SHINE-VS17-Latest
|
2021-09-15 18:30:01 -05:00
|
|
|
${{ if eq(variables['System.CollectionUri'], 'https://dev.azure.com/ms/') }}:
|
2023-09-11 14:33:12 -05:00
|
|
|
name: SHINE-OSS-L
|
2021-09-15 18:30:01 -05:00
|
|
|
${{ if ne(variables['System.CollectionUri'], 'https://dev.azure.com/ms/') }}:
|
2023-09-11 14:33:12 -05:00
|
|
|
name: SHINE-INT-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 }}
|
2024-01-15 13:45:28 -08:00
|
|
|
enableCaching: ${{ parameters.enableCaching }}
|
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'
|
2023-11-14 10:26:05 -05:00
|
|
|
condition: and(succeededOrFailed(), not(eq(variables['Build.Reason'], 'PullRequest')))
|