mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-15 19:27:56 +01:00
[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:
2
.github/actions/spell-check/expect.txt
vendored
2
.github/actions/spell-check/expect.txt
vendored
@@ -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
|
||||||
|
|||||||
@@ -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 } })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user