Skip to content

Commit 1169246

Browse files
past-duepull[bot]
authored andcommitted
[GitHub Actions] Windows: Fix source bundle creation
1 parent c6bc7a5 commit 1169246

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/CI_windows.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,7 @@ jobs:
679679
env:
680680
WZ_REPO_PATH: ${{ steps.settings.outputs.WZ_REPO_PATH }}
681681
WZ_ARCHIVE_PATH: '${{ github.workspace }}\output\archive\warzone2100_${{ steps.settings.outputs.WZ_BUILD_DESC }}_archive.zip'
682+
WZ_DEBUGSYMBOLS_PATH: '${{ github.workspace }}\output\debugsymbols\warzone2100_${{ steps.settings.outputs.WZ_BUILD_DESC }}.DEBUGSYMBOLS.7z'
682683
SOURCE_BUNDLE_OUTPUT_DIR: '${{ github.workspace }}\output\sentry_source_bundles'
683684
run: |
684685
# Download sentry-cli
@@ -689,9 +690,14 @@ jobs:
689690
# Extract the WZ archive to a temporary path
690691
echo "::group::Expanding archive ..."
691692
Expand-Archive -LiteralPath "${env:WZ_ARCHIVE_PATH}" -DestinationPath "$(pwd)\wz_extracted"
693+
echo "Expanding archive ... Done"
694+
# Extract the debug symbols to the temporary path's "bin" directory
695+
$SYMBOLS_OUTPUT_DIR = "$(pwd)\wz_extracted"
696+
echo "Extracting debug symbols ..."
697+
Start-Process "7z" -ArgumentList "x","${env:WZ_DEBUGSYMBOLS_PATH}","-o${SYMBOLS_OUTPUT_DIR}","-aos" -Wait
698+
echo "Extracting debug symbols ... Done"
692699
# Remove any .sym files from extracted archive
693700
Remove-Item "$(pwd)\wz_extracted\bin\*" -Recurse -Include *.sym
694-
echo "Expanding archive ... Done"
695701
Get-ChildItem -Path "$(pwd)\wz_extracted\bin" -Recurse
696702
echo "::endgroup::"
697703
# Create the Sentry source bundle

0 commit comments

Comments
 (0)