2019-09-05 00:26:26 +08:00
|
|
|
parameters:
|
|
|
|
configuration: 'Release'
|
|
|
|
platform: ''
|
2023-08-17 00:31:10 +08:00
|
|
|
additionalBuildArguments: '/p:RestorePackagesConfig=true -m'
|
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-12-14 20:37:23 +08:00
|
|
|
NUGET_RESTORE_MSBUILD_ARGS: /p:Platform=${{ parameters.platform }} # Required for nuget to work due to self contained
|
2022-12-17 01:46:07 +08:00
|
|
|
NODE_OPTIONS: --max_old_space_size=16384
|
2021-09-16 07:30:01 +08:00
|
|
|
pool:
|
2023-09-21 06:08:47 +08:00
|
|
|
demands: ImageOverride -equals SHINE-VS17-Preview
|
2021-09-16 07:30:01 +08:00
|
|
|
${{ if eq(variables['System.CollectionUri'], 'https://dev.azure.com/ms/') }}:
|
2023-09-12 03:33:12 +08:00
|
|
|
name: SHINE-OSS-L
|
2021-09-16 07:30:01 +08:00
|
|
|
${{ if ne(variables['System.CollectionUri'], 'https://dev.azure.com/ms/') }}:
|
2023-09-12 03:33:12 +08:00
|
|
|
name: SHINE-INT-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')))
|