CI: fix some pdbs shadowing others for upload

This commit is contained in:
Nicholas Hastings
2026-07-05 11:14:02 -04:00
parent 0cc33d4bad
commit 3070a1c26f
+6 -2
View File
@@ -226,11 +226,15 @@ jobs:
$fullPdbPathInfo = (Get-Item -Path (Join-Path -Path $buildDir -ChildPath $_))
$baseName = $fullPdbPathInfo.BaseName
$dir = $fullPdbPathInfo.DirectoryName
$relDir = [System.IO.Path]::GetRelativePath($buildDir, $dir)
$destDir = Join-Path $outDir $relDir
New-Item -ItemType Directory -Force -Path $destDir | Out-Null
'.pdb', '.exe', '.dll' | ForEach-Object -Process {
$binPath = Join-Path $dir ($baseName + $_)
if (Test-Path $binPath) {
Copy-Item -Path $binPath -Destination $outDir
Copy-Item -Path $binPath -Destination $destDir
}
}
}