From 3fa5f74635609d34efff6da0161a0386a644fd6b Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 6 May 2023 16:47:18 -0500 Subject: [PATCH] Archive Win32 binaries with debug info for crash analysis These can be used with cv2pdb to symbolicate memory dumps in WinDbg --- .github/workflows/CI.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 5ec24b3a..a2d7f99f 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -781,7 +781,7 @@ jobs: run: | mkdir build cd build - cmake -DCMAKE_BUILD_TYPE=Release \ + cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DSUNSHINE_ASSETS_DIR=assets \ -G "MinGW Makefiles" \ .. @@ -801,6 +801,15 @@ jobs: mv ./cpack_artifacts/Sunshine.exe ../artifacts/sunshine-windows-installer.exe mv ./cpack_artifacts/Sunshine.zip ../artifacts/sunshine-windows-portable.zip + - name: Package Windows Debug Info + working-directory: build + run: | + # save the original binaries with debug info + 7z -r ` + "-xr!CMakeFiles" ` + "-xr!cpack_artifacts" ` + a "../artifacts/sunshine-debuginfo-win32.zip" "*.exe" + - name: Upload Artifacts uses: actions/upload-artifact@v3 with: