Skip to content

Commit

Permalink
Merge pull request #3236 from microsoft/staging
Browse files Browse the repository at this point in the history
Release - 6/18/24
  • Loading branch information
EricJohnson327 authored Jun 17, 2024
2 parents 5c257a7 + 51447fe commit 6f902f0
Show file tree
Hide file tree
Showing 365 changed files with 37,668 additions and 1,343 deletions.
32 changes: 30 additions & 2 deletions Build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,23 @@ $env:sdk_version = build\Scripts\CreateBuildInfo.ps1 -Version $VersionOfSDK -IsS

$isAdmin = ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] 'Administrator')

function Write-XmlDocumentToFile {
param (
[System.Xml.XmlDocument]$xmlDocument,
[string]$filePath
)

$settings = New-Object System.Xml.XmlWriterSettings
$settings.Indent = $true
$settings.CheckCharacters = $false
$settings.NewLineChars = "`r`n"

$writer = [System.Xml.XmlWriter]::Create($filePath, $settings)
$xmlDocument.WriteTo($writer)
$writer.Flush()
$writer.Close()
}

if ($IsAzurePipelineBuild) {
Copy-Item (Join-Path $env:Build_RootDirectory "build\nuget.config.internal") -Destination (Join-Path $env:Build_RootDirectory "nuget.config")
}
Expand Down Expand Up @@ -127,6 +144,11 @@ Try {
$uapExtension = [System.Xml.Linq.XName]::Get("{http://schemas.microsoft.com/appx/manifest/uap/windows10/3}Extension");
$uapAppExtension = [System.Xml.Linq.XName]::Get("{http://schemas.microsoft.com/appx/manifest/uap/windows10/3}AppExtension");

# Update C++ version resources and header
$cppHeader = (Join-Path $env:Build_RootDirectory "build\cppversion\version.h")
$updatebinverpath = (Join-Path $env:Build_RootDirectory "build\scripts\update-binver.ps1")
& $updatebinverpath -TargetFile $cppHeader -BuildVersion $env:msix_version

# Update the appxmanifest
$appxmanifestPath = (Join-Path $env:Build_RootDirectory "src\Package.appxmanifest")
$appxmanifest = [System.Xml.Linq.XDocument]::Load($appxmanifestPath)
Expand All @@ -151,7 +173,7 @@ Try {
}
}
}
$appxmanifest.Save($appxmanifestPath)
Write-XmlDocumentToFile -xmlDocument $appxmanifest -filePath $appxmanifestPath

# This is needed for vcxproj
& $nugetPath restore
Expand All @@ -164,6 +186,7 @@ Try {
("DevHome.sln"),
("/p:Platform="+$platform),
("/p:Configuration="+$configuration),
("/p:Version="+$env:msix_version),
("/restore"),
("/binaryLogger:DevHome.$platform.$configuration.binlog"),
("/p:AppxPackageOutput=$appxPackageDir\DevHome-$platform.msix"),
Expand All @@ -186,6 +209,11 @@ Try {
}
}

# reset version file back to original values
$cppHeader = (Join-Path $env:Build_RootDirectory "build\cppversion\version.h")
$updatebinverpath = (Join-Path $env:Build_RootDirectory "build\scripts\update-binver.ps1")
& $updatebinverpath -TargetFile $cppHeader -BuildVersion "1.0.0.0"

# Reset the appxmanifest to prevent unnecessary code changes
$appxmanifest = [System.Xml.Linq.XDocument]::Load($appxmanifestPath)
$appxmanifest.Root.Element($xIdentity).Attribute("Version").Value = "0.0.0.0"
Expand All @@ -203,7 +231,7 @@ Try {
}
}
}
$appxmanifest.Save($appxmanifestPath)
Write-XmlDocumentToFile -xmlDocument $appxmanifest -filePath $appxmanifestPath
}

if (($BuildStep -ieq "stubpackages")) {
Expand Down
28 changes: 28 additions & 0 deletions DevHome.sln
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DevSetupAgent.Test", "exten
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HyperVExtension.HostGuestCommunication", "extensions\HyperVExtension\src\HyperVExtension.HostGuestCommunication\HyperVExtension.HostGuestCommunication.csproj", "{D759CD66-494C-4A00-8075-8B65A9891349}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DevHome.PI", "tools\PI\DevHome.PI\DevHome.PI.csproj", "{CAAC0CDF-9AB8-4F43-A3EB-38D785AF5725}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "PI", "PI", "{DB3D0F2C-1A7F-44B4-B408-B21A56212985}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Customization", "Customization", "{623998FD-B0A6-4980-95D5-A5072301CA10}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DevHome.Customization", "tools\Customization\DevHome.Customization\DevHome.Customization.csproj", "{AF527EA4-6A24-4BD6-BC6E-A5863DC3489C}"
Expand All @@ -142,6 +146,11 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DevHome.EnvironmentVariable
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DevHome.Telemetry.Native", "telemetry\DevHome.Telemetry.Native\DevHome.Telemetry.Native.vcxproj", "{8EB52F7D-D216-49FF-BF16-DE06E4695950}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Scripts", "Scripts", "{E768781A-D1F7-4C03-B46D-E76354FAB587}"
ProjectSection(SolutionItems) = preProject
tools\scripts\CaptureDevHomeLogs.ps1 = tools\scripts\CaptureDevHomeLogs.ps1
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|arm64 = Debug|arm64
Expand Down Expand Up @@ -614,6 +623,18 @@ Global
{D759CD66-494C-4A00-8075-8B65A9891349}.Release|x64.Build.0 = Release|x64
{D759CD66-494C-4A00-8075-8B65A9891349}.Release|x86.ActiveCfg = Release|x86
{D759CD66-494C-4A00-8075-8B65A9891349}.Release|x86.Build.0 = Release|x86
{CAAC0CDF-9AB8-4F43-A3EB-38D785AF5725}.Debug|arm64.ActiveCfg = Debug|ARM64
{CAAC0CDF-9AB8-4F43-A3EB-38D785AF5725}.Debug|arm64.Build.0 = Debug|ARM64
{CAAC0CDF-9AB8-4F43-A3EB-38D785AF5725}.Debug|x64.ActiveCfg = Debug|x64
{CAAC0CDF-9AB8-4F43-A3EB-38D785AF5725}.Debug|x64.Build.0 = Debug|x64
{CAAC0CDF-9AB8-4F43-A3EB-38D785AF5725}.Debug|x86.ActiveCfg = Debug|x86
{CAAC0CDF-9AB8-4F43-A3EB-38D785AF5725}.Debug|x86.Build.0 = Debug|x86
{CAAC0CDF-9AB8-4F43-A3EB-38D785AF5725}.Release|arm64.ActiveCfg = Release|ARM64
{CAAC0CDF-9AB8-4F43-A3EB-38D785AF5725}.Release|arm64.Build.0 = Release|ARM64
{CAAC0CDF-9AB8-4F43-A3EB-38D785AF5725}.Release|x64.ActiveCfg = Release|x64
{CAAC0CDF-9AB8-4F43-A3EB-38D785AF5725}.Release|x64.Build.0 = Release|x64
{CAAC0CDF-9AB8-4F43-A3EB-38D785AF5725}.Release|x86.ActiveCfg = Release|x86
{CAAC0CDF-9AB8-4F43-A3EB-38D785AF5725}.Release|x86.Build.0 = Release|x86
{AF527EA4-6A24-4BD6-BC6E-A5863DC3489C}.Debug|arm64.ActiveCfg = Debug|arm64
{AF527EA4-6A24-4BD6-BC6E-A5863DC3489C}.Debug|arm64.Build.0 = Debug|arm64
{AF527EA4-6A24-4BD6-BC6E-A5863DC3489C}.Debug|x64.ActiveCfg = Debug|x64
Expand Down Expand Up @@ -745,15 +766,22 @@ Global
{F4095FD3-6A3F-490B-966D-E63059612EE6} = {3E3791DF-070D-4ADE-96E8-93D6FBD53953}
{0E05A442-BDC7-43D4-A000-F8C986826716} = {3E3791DF-070D-4ADE-96E8-93D6FBD53953}
{D759CD66-494C-4A00-8075-8B65A9891349} = {81AACED5-CFB5-47A6-AFD6-4625AADCFFA3}
{CAAC0CDF-9AB8-4F43-A3EB-38D785AF5725} = {DB3D0F2C-1A7F-44B4-B408-B21A56212985}
{DB3D0F2C-1A7F-44B4-B408-B21A56212985} = {A972EC5B-FC61-4964-A6FF-F9633EB75DFD}
{623998FD-B0A6-4980-95D5-A5072301CA10} = {A972EC5B-FC61-4964-A6FF-F9633EB75DFD}
{AF527EA4-6A24-4BD6-BC6E-A5863DC3489C} = {623998FD-B0A6-4980-95D5-A5072301CA10}
{FAB6FAA7-ADF4-4B65-9831-0C819915E6E1} = {A972EC5B-FC61-4964-A6FF-F9633EB75DFD}
{19C08C57-7C22-48C9-9B6C-FAAF1FCC65E7} = {FAB6FAA7-ADF4-4B65-9831-0C819915E6E1}
{1317314E-9BDD-4F1C-A76F-22121637A091} = {FAB6FAA7-ADF4-4B65-9831-0C819915E6E1}
{2E5629CA-0D1B-42B1-8D6E-934A6E1E18D9} = {FAB6FAA7-ADF4-4B65-9831-0C819915E6E1}
{5F9749BC-F34E-4F45-933F-61E0F3ED521F} = {FAB6FAA7-ADF4-4B65-9831-0C819915E6E1}
{E768781A-D1F7-4C03-B46D-E76354FAB587} = {A972EC5B-FC61-4964-A6FF-F9633EB75DFD}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {030B5641-B206-46BB-BF71-36FF009088FA}
EndGlobalSection
GlobalSection(SharedMSBuildProjectFiles) = preSolution
build\cppversion\version.vcxitems*{092ac740-da01-4872-8e93-b9557dad6be5}*SharedItemsImports = 5
build\cppversion\version.vcxitems*{60e0fd98-5396-436d-bab7-187a853a5dc6}*SharedItemsImports = 5
EndGlobalSection
EndGlobal
4 changes: 4 additions & 0 deletions Directory.CppBuild.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@
<CppBaseOutDir>$(SolutionDir)tools\bin\$(CppPlatformTarget)\$(Configuration)\</CppBaseOutDir>
<CppOutDir>$(CppBaseOutDir)$(MSBuildProjectName)\</CppOutDir>
</PropertyGroup>

<ImportGroup Label="Shared">
<Import Project="$(SolutionDir)build\cppversion\version.vcxitems" Label="Shared" />
</ImportGroup>
</Project>
2 changes: 1 addition & 1 deletion TestingScenarios.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ These are the testing scenarios that need to be validated before shipping a new
1. [Managing Environments](tools/Environments/DevHome.Environments/TestingScenarios/ManageEnvironments.md)
1. [Creating Environment](tools/SetupFlow/DevHome.SetupFlow.UnitTest/TestingScenarios/CreateEnvironment.md)
1. [Setting up an Environment](tools/SetupFlow/DevHome.SetupFlow.UnitTest/TestingScenarios/SetupEnvironment.md)

1. [Quickstart Playground](tools/SetupFlow/DevHome.SetupFlow.UnitTest/TestingScenarios/QuickstartPlayground.md)
38 changes: 35 additions & 3 deletions build/TriggerReleaseBuild.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,38 @@
trigger:
- release

steps:
- script: echo Triggering ADO Build
displayName: 'Triggering ADO Build'
resources:
repositories:
- repository: templates_onebranch
type: git
name: OneBranch.Pipelines/GovernedTemplates
ref: refs/heads/main
- repository: m365Pipelines
type: git
name: 1ESPipelineTemplates/M365GPT
ref: refs/tags/release

extends:
template: v1/M365.Official.PipelineTemplate.yml@m365Pipelines
parameters:
sdl:
roslyn:
enabled: true
arrow:
serviceConnection: DevHome Build VM Generation
baseline:
baselineFile: $(Build.SourcesDirectory)\guardian\SDL\.gdnbaselines
pool:
name: Azure-Pipelines-1ESPT-ExDShared
image: windows-2022
os: windows
customBuildTags:
- ES365AIMigrationTooling
stages:
- stage: Trigger_Build
dependsOn: []
jobs:
- job: Trigger_Build
steps:
- script: echo Triggering ADO Build
displayName: 'Triggering ADO Build'
38 changes: 35 additions & 3 deletions build/TriggerStagingBuild.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,38 @@
trigger:
- staging

steps:
- script: echo Triggering ADO Build
displayName: 'Triggering ADO Build'
resources:
repositories:
- repository: templates_onebranch
type: git
name: OneBranch.Pipelines/GovernedTemplates
ref: refs/heads/main
- repository: m365Pipelines
type: git
name: 1ESPipelineTemplates/M365GPT
ref: refs/tags/release

extends:
template: v1/M365.Official.PipelineTemplate.yml@m365Pipelines
parameters:
sdl:
roslyn:
enabled: true
arrow:
serviceConnection: DevHome Build VM Generation
baseline:
baselineFile: $(Build.SourcesDirectory)\guardian\SDL\.gdnbaselines
pool:
name: Azure-Pipelines-1ESPT-ExDShared
image: windows-2022
os: windows
customBuildTags:
- ES365AIMigrationTooling
stages:
- stage: Trigger_Build
dependsOn: []
jobs:
- job: Trigger_Build
steps:
- script: echo Triggering ADO Build
displayName: 'Triggering ADO Build'
Loading

0 comments on commit 6f902f0

Please sign in to comment.