ci: Strip Windows release executables

This commit is contained in:
Matt Borgerson 2024-12-30 20:16:08 -07:00 committed by mborgerson
parent 4261541d6a
commit 15338ec31c
1 changed files with 3 additions and 0 deletions
.github/workflows

View File

@ -145,9 +145,12 @@ jobs:
- name: Generate PDB
run: |
Invoke-WebRequest -Uri "https://github.com/rainers/cv2pdb/releases/download/v0.52/cv2pdb-0.52.zip" -OutFile "cv2pdb.zip"
Invoke-WebRequest -Uri "https://github.com/mstorsjo/llvm-mingw/releases/download/20241217/llvm-mingw-20241217-ucrt-x86_64.zip" -OutFile "llvm-mingw.zip"
7z x -ocv2pdb -y cv2pdb.zip
7z x -y llvm-mingw.zip
cd ${{ matrix.artifact_name }}
../cv2pdb/cv2pdb64.exe xemu.exe
../llvm-mingw-20241217-ucrt-x86_64/bin/${{ matrix.arch }}-w64-mingw32-strip.exe xemu.exe
mkdir ../dist
7z a -tzip ../dist/${{ matrix.artifact_name }}.zip * "-xr!*.pdb"
7z a -tzip ../dist/${{ matrix.artifact_name }}-pdb.zip "-ir!*.pdb"