Skip to content

Commit 1289d09

Browse files
author
Console Service Bot
committed
Merge remote-tracking branch 'origin/main' into feature/llm
2 parents 8b4d5f1 + cdf4bd9 commit 1289d09

File tree

5 files changed

+21
-17
lines changed

5 files changed

+21
-17
lines changed

build/pipelines/ob-nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ extends:
2828
official: true
2929
branding: Canary
3030
buildTerminal: true
31-
pgoBuildMode: None # BODGY - OneBranch is on VS 17.10, which is known to be the worst
31+
pgoBuildMode: Optimize
3232
codeSign: true
3333
signingIdentity:
3434
serviceName: $(SigningServiceName)

build/pipelines/pgo.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ stages:
5050
buildEverything: true
5151
pgoBuildMode: Instrument
5252
artifactStem: -instrumentation
53+
keepAllExpensiveBuildOutputs: false # the ARM64 build agent runs out of memory downloading the artifacts...
5354

5455
- stage: RunPGO
5556
displayName: Run PGO

build/pipelines/templates-v2/job-pgo-build-nuget-and-publish.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
pgoToolsPath: $(Build.SourcesDirectory)\build\PGO
2727
nuspecPath: $(pgoToolsPath)\NuSpecs
2828
nuspecFilename: PGO.nuspec
29+
nugetFeed: "https://pkgs.dev.azure.com/shine-oss/terminal/_packaging/TerminalDependencies/nuget/v3/index.json"
2930

3031
steps:
3132
- checkout: self
@@ -45,7 +46,8 @@ jobs:
4546

4647
- task: NuGetAuthenticate@1
4748
inputs:
48-
nuGetServiceConnections: 'Terminal Public Artifact Feed'
49+
azureDevOpsServiceConnection: 'Terminal Public Artifact Feed'
50+
feedUrl: $(nugetFeed)
4951

5052
# In the Microsoft Azure DevOps tenant, NuGetCommand is ambiguous.
5153
# This should be `task: NuGetCommand@2`
@@ -68,15 +70,7 @@ jobs:
6870
artifact: pgo-nupkg-${{ parameters.buildConfiguration }}${{ parameters.artifactStem }}
6971
displayName: "Publish Pipeline Artifact"
7072

71-
- task: 333b11bd-d341-40d9-afcf-b32d5ce6f23b@2
72-
displayName: 'NuGet push'
73-
inputs:
74-
command: push
75-
nuGetFeedType: external
76-
packagesToPush: $(Build.ArtifactStagingDirectory)/*.nupkg
77-
# The actual URL and PAT for this feed is configured at
78-
# https://microsoft.visualstudio.com/Dart/_settings/adminservices
79-
# This is the name of that connection
80-
publishFeedCredentials: 'Terminal Public Artifact Feed'
81-
feedsToUse: config
82-
nugetConfigPath: '$(Build.SourcesDirectory)/NuGet.config'
73+
- pwsh: |-
74+
$nupkg = Get-Item "$(Build.ArtifactStagingDirectory)/*.nupkg"
75+
& nuget push -ApiKey az -Source "$(nugetFeed)" "$nupkg"
76+
displayName: NuGet push

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)