From 3070a1c26f97f46c3f801d1287b9932a2afb2515 Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Sun, 5 Jul 2026 11:14:02 -0400 Subject: [PATCH] CI: fix some pdbs shadowing others for upload --- .github/workflows/build-release.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 6183ba38..0bec9210 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -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 } } }