-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build: add a OneBranch Official release pipeline #16081
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"instanceUrl": "https://microsoft.visualstudio.com", | ||
"projectName": "OS", | ||
"areaPath": "OS\\Windows Client and Services\\ADEPT\\E4D-Engineered for Developers\\SHINE\\Terminal", | ||
"notificationAliases": ["condev@microsoft.com", "duhowett@microsoft.com"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
trigger: none | ||
pr: none | ||
schedules: | ||
- cron: "30 3 * * 2-6" # Run at 03:30 UTC Tuesday through Saturday (After the work day in Pacific, Mon-Fri) | ||
displayName: "Nightly Terminal Build" | ||
branches: | ||
include: | ||
- main | ||
always: false # only run if there's code changes! | ||
|
||
parameters: | ||
- name: publishToAzure | ||
displayName: "Deploy to **PUBLIC** Azure Storage" | ||
type: boolean | ||
default: true | ||
|
||
name: $(BuildDefinitionName)_$(date:yyMM).$(date:dd)$(rev:rrr) | ||
|
||
variables: | ||
- template: templates-v2/variables-nuget-package-version.yml | ||
- template: templates-v2/variables-onebranch-config.yml | ||
|
||
extends: | ||
template: templates-v2/pipeline-onebranch-full-release-build.yml | ||
parameters: | ||
official: true | ||
branding: Canary | ||
buildTerminal: true | ||
pgoBuildMode: Optimize | ||
codeSign: true | ||
publishSymbolsToPublic: true | ||
publishVpackToWindows: false | ||
symbolExpiryTime: 15 | ||
${{ if eq(true, parameters.publishToAzure) }}: | ||
extraPublishJobs: | ||
- template: job-deploy-to-azure-storage.yml | ||
parameters: | ||
pool: { type: windows } | ||
dependsOn: [PublishSymbols] | ||
storagePublicRootURL: $(AppInstallerRootURL) | ||
subscription: $(AzureSubscriptionName) | ||
storageAccount: $(AzureStorageAccount) | ||
storageContainer: $(AzureStorageContainer) | ||
buildConfiguration: Release | ||
buildPlatforms: [x64, x86, arm64] | ||
environment: production-canary | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
trigger: none | ||
pr: none | ||
|
||
# Expose all of these parameters for user configuration. | ||
parameters: | ||
- name: branding | ||
displayName: "Branding (Build Type)" | ||
type: string | ||
default: Release | ||
values: | ||
- Release | ||
- Preview | ||
- Canary | ||
- Dev | ||
- name: buildTerminal | ||
displayName: "Build Windows Terminal MSIX" | ||
type: boolean | ||
default: true | ||
- name: buildConPTY | ||
displayName: "Build ConPTY NuGet" | ||
type: boolean | ||
default: false | ||
- name: buildWPF | ||
displayName: "Build Terminal WPF Control" | ||
type: boolean | ||
default: false | ||
- name: pgoBuildMode | ||
displayName: "PGO Build Mode" | ||
type: string | ||
default: Optimize | ||
values: | ||
- Optimize | ||
- Instrument | ||
- None | ||
- name: buildConfigurations | ||
displayName: "Build Configurations" | ||
type: object | ||
default: | ||
- Release | ||
- name: buildPlatforms | ||
displayName: "Build Platforms" | ||
type: object | ||
default: | ||
- x64 | ||
- x86 | ||
- arm64 | ||
- name: terminalInternalPackageVersion | ||
displayName: "Terminal Internal Package Version" | ||
type: string | ||
default: '0.0.8' | ||
|
||
- name: publishSymbolsToPublic | ||
displayName: "Publish Symbols to MSDL" | ||
type: boolean | ||
default: true | ||
- name: publishVpackToWindows | ||
displayName: "Publish VPack to Windows" | ||
type: boolean | ||
default: false | ||
|
||
name: $(BuildDefinitionName)_$(date:yyMM).$(date:dd)$(rev:rrr) | ||
|
||
variables: | ||
- template: templates-v2/variables-nuget-package-version.yml | ||
- template: templates-v2/variables-onebranch-config.yml | ||
|
||
extends: | ||
template: templates-v2/pipeline-onebranch-full-release-build.yml | ||
parameters: | ||
official: true | ||
branding: ${{ parameters.branding }} | ||
buildTerminal: ${{ parameters.buildTerminal }} | ||
buildConPTY: ${{ parameters.buildConPTY }} | ||
buildWPF: ${{ parameters.buildWPF }} | ||
pgoBuildMode: ${{ parameters.pgoBuildMode }} | ||
buildConfigurations: ${{ parameters.buildConfigurations }} | ||
buildPlatforms: ${{ parameters.buildPlatforms }} | ||
codeSign: true | ||
terminalInternalPackageVersion: ${{ parameters.terminalInternalPackageVersion }} | ||
publishSymbolsToPublic: ${{ parameters.publishSymbolsToPublic }} | ||
publishVpackToWindows: ${{ parameters.publishVpackToWindows }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,28 +61,7 @@ parameters: | |
demands: ImageOverride -equals SHINE-VS17-Latest | ||
|
||
variables: | ||
# If we are building a branch called "release-*", change the NuGet suffix | ||
# to "preview". If we don't do that, XES will set the suffix to "release1" | ||
# because it truncates the value after the first period. | ||
# We also want to disable the suffix entirely if we're Release branded while | ||
# on a release branch. | ||
# main is special, however. XES ignores main. Since we never produce actual | ||
# shipping builds from main, we want to force it to have a beta label as | ||
# well. | ||
# | ||
# In effect: | ||
# BRANCH / BRANDING | Release | Preview | ||
# ------------------|----------------------------|----------------------------- | ||
# release-* | 1.12.20220427 | 1.13.20220427-preview | ||
# main | 1.14.20220427-experimental | 1.14.20220427-experimental | ||
# all others | 1.14.20220427-mybranch | 1.14.20220427-mybranch | ||
${{ if startsWith(variables['Build.SourceBranchName'], 'release-') }}: | ||
${{ if eq(parameters.branding, 'Release') }}: | ||
NoNuGetPackBetaVersion: true | ||
${{ else }}: | ||
NuGetPackBetaVersion: preview | ||
${{ elseif eq(variables['Build.SourceBranchName'], 'main') }}: | ||
NuGetPackBetaVersion: experimental | ||
- template: variables-nuget-package-version.yml | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. well this is neat |
||
|
||
resources: | ||
repositories: | ||
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh no they know what our area path is oh no
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh no, they'll think we're engineering for developers oh no