-
Notifications
You must be signed in to change notification settings - Fork 334
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dependencies from https://dev.azure.com/microsoft/ProjectReuni…
…on/_git/ProjectReunionInternal build Maestro-UpdateEngCommon_2201.10001 (#1962) (#1964) Microsoft.WinAppSDK.EngCommon From Version 1.0.0-20211213.0-CI -> To Version 1.0.0-20220110.0-CI Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> Co-authored-by: reunion-maestro[bot] <81196566+reunion-maestro[bot]@users.noreply.github.com> Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
- Loading branch information
1 parent
e3d85ea
commit 4ff5816
Showing
7 changed files
with
167 additions
and
27 deletions.
There are no files selected for viewing
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
45 changes: 45 additions & 0 deletions
45
eng/common/AzurePipelinesTemplates/WindowsAppSDK-BuildAndIntegrationTest-Steps.yml
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,45 @@ | ||
# This yml template combines WindowsAppSDK-BuildSetup, WindowsAppSDK-Build, | ||
# and WindowsAppSDK-IntegrationTest templatesfor running the testAll script in ProjectReunionInternal | ||
parameters: | ||
- name: TransportPackageArtifactName | ||
type: string | ||
default: '' | ||
- name: AzureSubscriptionServiceConnection | ||
type: string | ||
default: 'ProjectReunion Resource Manager' | ||
- name: NuGetServiceConnectionName | ||
type: string | ||
default: 'ProjectReunionInternal' | ||
- name: BuildType | ||
displayName: "Build Type" | ||
type: string | ||
default: 'stable' | ||
values: | ||
- 'stable' | ||
- 'experimental' | ||
- name: "TransportPackages" | ||
displayName: "TransportPackages to replace (name:version)" | ||
type: object | ||
default: | ||
Foundation: | ||
name: Microsoft.WindowsAppSDK.Foundation.TransportPackage | ||
version: 1.0.0-stable | ||
- name: TestSelection | ||
type: string | ||
default: "*" | ||
|
||
steps: | ||
- template: WindowsAppSDK-BuildSetup-Steps.yml | ||
parameters: | ||
AzureSubscriptionServiceConnection: ${{ parameters.AzureSubscriptionServiceConnection }} | ||
NuGetServiceConnectionName: ${{ parameters.NuGetServiceConnectionName }} | ||
|
||
- template: WindowsAppSDK-Build-Steps.yml | ||
parameters: | ||
TransportPackageArtifactName: ${{ parameters.TransportPackageArtifactName }} | ||
BuildType: ${{ parameters.BuildType }} | ||
TransportPackages: ${{ parameters.TransportPackages }} | ||
|
||
- template: WindowsAppSDK-IntegrationTest-Steps.yml | ||
parameters: | ||
TestSelection: ${{ parameters.TestSelection }} |
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
88 changes: 88 additions & 0 deletions
88
eng/common/AzurePipelinesTemplates/WindowsAppSDK-IntegrationTest-Steps.yml
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,88 @@ | ||
# This yml template is for running the testAll script in ProjectReunionInternal | ||
# It downloads the WindowsAppSDK NuGetPackage from WindowsAppSDKNugetPackage (by default) | ||
# | ||
# Requirements: | ||
# - This yml template can only be called from a pipeline in the "microsoft" AzureDevOps | ||
# - Only the ProjectReunionInternal repository is checkout in the job | ||
# | ||
# The template eng\common\AzurePipelinesTemplates\WindowsAppSDK-BuildSetup-Steps.yml | ||
# will facilitate setting up the requirements to sucessfully run this template. | ||
# eng\common\AzurePipelinesTemplates\WindowsAppSDK-Build-Steps.yml will build the | ||
# WindowsAppSDK Nuget Package for this template to use. | ||
# | ||
# In most cases, WindowsAppSDK-BuildSetup-Steps.yml should be called first, | ||
# then WindowsAppSDK-Build-Steps.yml, and finally WindowsAppSDK-IntegrationTest-Steps.yml | ||
# | ||
# Parameters: | ||
# WinAppSDkPackageArtifactName | ||
# Name of the Artifact where the WindowsAppSDK NuGetPackage for the build lives | ||
|
||
parameters: | ||
- name: WinAppSDkPackageArtifactName | ||
type: string | ||
default: "WindowsAppSDKNugetPackage" | ||
- name: TestSelection | ||
type: string | ||
default: "*" | ||
|
||
steps: | ||
- task: DownloadBuildArtifacts@0 | ||
inputs: | ||
artifactName: ${{ parameters.WinAppSDkPackageArtifactName }} | ||
downloadPath: '$(Build.SourcesDirectory)\temp' | ||
itemPattern: | | ||
**/Microsoft.WindowsAppSDK.*.nupkg | ||
- task: PowerShell@2 | ||
displayName: Extract WindowsAppSDKVersion | ||
inputs: | ||
targetType: 'inline' | ||
script: | | ||
Copy-Item -Path "$(Build.SourcesDirectory)\temp" -Destination "$(Build.SourcesDirectory)\PackLocation" -Recurse | ||
$files = Get-ChildItem $(Build.SourcesDirectory)\temp | ||
foreach ($file in $files) # Iterate through each package we restored in the directory | ||
{ | ||
Write-Host "file:" $file.FullName | ||
$nupkgPaths = Get-ChildItem $file.FullName -Filter "*.nupkg" | ||
# Extract nupkg to access the nuspec | ||
# The files in this directory does not contain the nuspec by default | ||
foreach ($nupkgPath in $nupkgPaths) | ||
{ | ||
Write-Host "nupkgPath:" $nupkgPath.FullName | ||
$rename = $nupkgPath.Name + ".zip" | ||
Rename-Item $nupkgPath.FullName $rename | ||
$renamedFilePath = $nupkgPath.FullName + ".zip" | ||
$dest = $file.FullName + "/contents" | ||
Expand-Archive $renamedFilePath -Destination $dest | ||
} | ||
$nuspecPaths = Get-ChildItem $file.FullName -Recurse -Filter "*.nuspec" | ||
foreach ($nuspecPath in $nuspecPaths) | ||
{ | ||
Write-Host "Found Nuspecs" | ||
[xml]$nuspec = Get-Content -Path $nuspecPath.FullName | ||
if ($nuspec.package.metadata.id -eq 'Microsoft.WindowsAppSDK') | ||
{ | ||
$version = $nuspec.package.metadata.version | ||
Write-Host "Found " $version | ||
Write-Host "##vso[task.setvariable variable=WindowsAppSDKPackageVersion;]$version" | ||
Exit 0 | ||
} | ||
} | ||
} | ||
Exit 1 | ||
- task: PowerShell@2 | ||
name: TestAll | ||
displayName: TestAll | ||
inputs: | ||
filePath: 'TestAll.ps1' | ||
arguments: > | ||
-WindowsAppSDKPackageVersion "$(WindowsAppSDKPackageVersion)" | ||
-Checkpoint "none" -Platform "x64" | ||
-Configuration "release" | ||
-YamlStep "none" | ||
-RunTestMachineSetup | ||
-Name "${{ parameters.TestSelection }}" |
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{ | ||
"tools": { | ||
"dotnet": "6.0.100" | ||
"dotnet": "6.0.101" | ||
}, | ||
"msbuild-sdks": { | ||
"Microsoft.WinAppSDK.EngCommon": "1.0.0-20211213.0-CI" | ||
"Microsoft.WinAppSDK.EngCommon": "1.0.0-20220110.0-CI" | ||
} | ||
} |