Skip to content

Commit 840a6d6

Browse files
committed
Force nuget install on arm64
1 parent ab8374b commit 840a6d6

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

build/pipelines/templates-v2/job-run-pgo-tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ jobs:
4545
displayName: Extract the unpackaged build for PGO
4646
4747
- template: steps-ensure-nuget-version.yml
48+
parameters:
49+
${{ if eq(parameters.buildPlatform, 'arm64') }}:
50+
# The ARM64 agents do not seem to have NuGet installed
51+
forceNugetInstallation: true
4852

4953
- powershell: |-
5054
$Package = 'Microsoft.Internal.Windows.Terminal.TestContent'
Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
1+
parameters:
2+
- name: forceNugetInstallation
3+
type: boolean
4+
default: false
5+
16
steps:
2-
- ${{ if eq(variables['System.CollectionId'], 'cb55739e-4afe-46a3-970f-1b49d8ee7564') }}:
7+
- ${{ if and(ne(parameters.forceNugetInstallation, true), eq(variables['System.CollectionId'], 'cb55739e-4afe-46a3-970f-1b49d8ee7564')) }}:
38
- pwsh: |-
49
Write-Host "Assuming NuGet is already installed..."
510
& nuget.exe help
611
displayName: Assume NuGet is fine
712
813
- ${{ else }}:
914
- task: NuGetToolInstaller@1
10-
displayName: Use NuGet 6.6.1
15+
displayName: Use NuGet 7.0.1
1116
inputs:
12-
versionSpec: 6.6.1
17+
versionSpec: 7.0.1

0 commit comments

Comments
 (0)