[ci]Enhance ARM64 configuration verification (#23509)

* Use case-sensitive equality check for platform name

* Add missing platform message.

* Update spelling
This commit is contained in:
Jeremy Sinclair
2023-01-26 11:40:15 -05:00
committed by GitHub
parent 8a0cf5ed97
commit 923c220338
2 changed files with 6 additions and 4 deletions

View File

@@ -192,6 +192,7 @@ CDeclaration
CDEF CDEF
cdpx cdpx
CENTERALIGN CENTERALIGN
ceq
cguid cguid
changecursor changecursor
Changemove Changemove
@@ -234,6 +235,7 @@ CMock
CMONITORS CMONITORS
cmpgt cmpgt
cmyk cmyk
cne
cnt cnt
Cocklebiddy Cocklebiddy
coclass coclass

View File

@@ -22,7 +22,7 @@ catch {
$solutionFile = [Microsoft.Build.Construction.SolutionFile]::Parse($solution); $solutionFile = [Microsoft.Build.Construction.SolutionFile]::Parse($solution);
$arm64SlnConfigs = $solutionFile.SolutionConfigurations | Where-Object { $arm64SlnConfigs = $solutionFile.SolutionConfigurations | Where-Object {
$_.PlatformName -eq "ARM64" $_.PlatformName -ceq "ARM64"
}; };
# Should have two configurations. Debug and Release. # Should have two configurations. Debug and Release.
@@ -39,9 +39,9 @@ $projects = $solutionFile.ProjectsInOrder | Where-Object {
# Enumerate through the projects and add any project with a mismatched platform and project configuration # Enumerate through the projects and add any project with a mismatched platform and project configuration
foreach ($project in $projects) { foreach ($project in $projects) {
foreach ($slnConfig in $arm64SlnConfigs.FullName) { foreach ($slnConfig in $arm64SlnConfigs.FullName) {
if ($project.ProjectConfigurations.$slnConfig.FullName -ne $slnConfig) { if ($project.ProjectConfigurations.$slnConfig.FullName -cne $slnConfig) {
$errorTable[$project.ProjectName] += @("" $errorTable[$project.ProjectName] += @(""`
| Select-Object @{n = "Configuration"; e = { $project.ProjectConfigurations.$slnConfig.FullName } }, | Select-Object @{n = "Configuration"; e = { $project.ProjectConfigurations.$slnConfig.FullName ?? "Missing platform" } },
@{n = "ExpectedConfiguration"; e = { $slnConfig } }) @{n = "ExpectedConfiguration"; e = { $slnConfig } })
} }
} }