CI: Flatten symbols for upload-artifact

This commit is contained in:
Ty 2025-03-07 09:47:19 -05:00 committed by Ty
parent 9842b11815
commit 5ab84aaa29
1 changed files with 7 additions and 4 deletions

View File

@ -172,13 +172,17 @@ jobs:
with: with:
crate: dump_syms crate: dump_syms
- name: Generate Breakpad Symbols - name: Generate Breakpad Symbols # Also flatten pdbs to a 'symbols' directory for upload-artifact
shell: pwsh shell: pwsh
run: | run: |
mkdir -Force symbols
Get-ChildItem -Path ./bin -Recurse -File | Where-Object { Get-ChildItem -Path ./bin -Recurse -File | Where-Object {
($_.Extension -eq ".exe" -or $_.Extension -eq ".pdb") -and ($_.Name -notmatch "updater") ($_.Extension -eq ".exe" -or $_.Extension -eq ".pdb") -and ($_.Name -notmatch "updater")
} | ForEach-Object { } | ForEach-Object {
& dump_syms $_.FullName >> pcsx2-qt.bpsym & dump_syms $_.FullName >> symbols/pcsx2-qt.bpsym
}
Get-ChildItem -Path ./bin -Recurse -Filter "*.pdb" | ForEach-Object {
Copy-Item $_.FullName -Destination symbols/
} }
- name: Upload artifact - with symbols - name: Upload artifact - with symbols
@ -186,5 +190,4 @@ jobs:
with: with:
name: ${{ steps.artifact-metadata.outputs.artifact-name }}-symbols name: ${{ steps.artifact-metadata.outputs.artifact-name }}-symbols
path: | path: |
./bin/**/*.pdb ./symbols
pcsx2-qt.bpsym