mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-15 19:27:56 +01:00
[ci]Conditionally turn off multi tasking for arm64 (#21957)
* [ci]Conditionally turn off multi tasking for arm64 * Use var expression in variables instead * Yet another try * Fix release CI as well * Use proper variables on matrix * Try non-runtime expressions for release CI * Remove debug prints
This commit is contained in:
@@ -9,6 +9,7 @@ jobs:
|
|||||||
variables:
|
variables:
|
||||||
BuildConfiguration: ${{ parameters.configuration }}
|
BuildConfiguration: ${{ parameters.configuration }}
|
||||||
BuildPlatform: ${{ parameters.platform }}
|
BuildPlatform: ${{ parameters.platform }}
|
||||||
|
useAllCPUsWhileBuildingPowerToys: $[ne(variables['BuildPlatform'],'arm64')] # Multi processor build for arm64 is broken in the latest pipelines update
|
||||||
pool:
|
pool:
|
||||||
demands: ImageOverride -equals WinDevVS17-latest
|
demands: ImageOverride -equals WinDevVS17-latest
|
||||||
${{ if eq(variables['System.CollectionUri'], 'https://dev.azure.com/ms/') }}:
|
${{ if eq(variables['System.CollectionUri'], 'https://dev.azure.com/ms/') }}:
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ steps:
|
|||||||
platform: '$(BuildPlatform)'
|
platform: '$(BuildPlatform)'
|
||||||
configuration: '$(BuildConfiguration)'
|
configuration: '$(BuildConfiguration)'
|
||||||
msbuildArgs: ${{ parameters.additionalBuildArguments }}
|
msbuildArgs: ${{ parameters.additionalBuildArguments }}
|
||||||
maximumCpuCount: false # Multi processor build for arm64 is broken in the latest pipelines update
|
maximumCpuCount: '$(useAllCPUsWhileBuildingPowerToys)'
|
||||||
|
|
||||||
- task: NuGetCommand@2
|
- task: NuGetCommand@2
|
||||||
displayName: Restore NuGet packages for BugReportTool.sln
|
displayName: Restore NuGet packages for BugReportTool.sln
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ jobs:
|
|||||||
${{ config }}_${{ platform }}:
|
${{ config }}_${{ platform }}:
|
||||||
BuildConfiguration: ${{ config }}
|
BuildConfiguration: ${{ config }}
|
||||||
BuildPlatform: ${{ platform }}
|
BuildPlatform: ${{ platform }}
|
||||||
|
useAllCPUsWhileBuildingPowerToys: ${{ ne(platform, 'arm64') }} # Multi processor build for arm64 is broken in the latest pipelines update
|
||||||
displayName: Build
|
displayName: Build
|
||||||
timeoutInMinutes: 120 # Some of the loc stuff adds quite a bit of time.
|
timeoutInMinutes: 120 # Some of the loc stuff adds quite a bit of time.
|
||||||
cancelTimeoutInMinutes: 1
|
cancelTimeoutInMinutes: 1
|
||||||
@@ -134,11 +135,11 @@ jobs:
|
|||||||
inputs:
|
inputs:
|
||||||
solution: '**\PowerToys.sln'
|
solution: '**\PowerToys.sln'
|
||||||
vsVersion: 17.0
|
vsVersion: 17.0
|
||||||
msbuildArgs: /p:CIBuild=true /bl:$(Build.SourcesDirectory)\msbuild.binlog
|
msbuildArgs: /p:CIBuild=true /bl:$(Build.SourcesDirectory)\msbuild.binlog -m:2
|
||||||
platform: $(BuildPlatform)
|
platform: $(BuildPlatform)
|
||||||
configuration: $(BuildConfiguration)
|
configuration: $(BuildConfiguration)
|
||||||
clean: true
|
clean: true
|
||||||
maximumCpuCount: true
|
maximumCpuCount: '$(useAllCPUsWhileBuildingPowerToys)'
|
||||||
|
|
||||||
- task: VSBuild@1
|
- task: VSBuild@1
|
||||||
displayName: Build BugReportTool
|
displayName: Build BugReportTool
|
||||||
|
|||||||
Reference in New Issue
Block a user