Skip to content

Commit c2efe79

Browse files
committed
Force nuget install on arm64
1 parent 4a12b3d commit c2efe79

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
@@ -52,6 +52,10 @@ jobs:
5252
displayName: Extract the unpackaged build for PGO
5353
5454
- template: steps-ensure-nuget-version.yml
55+
parameters:
56+
${{ if eq(parameters.buildPlatform, 'arm64') }}:
57+
# The ARM64 agents do not seem to have NuGet installed
58+
forceNugetInstallation: true
5559

5660
- powershell: |-
5761
$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)