Skip to content

Commit

Permalink
[GitHub Actions] Windows: Fix source bundle creation
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due authored and pull[bot] committed Jul 17, 2023
1 parent c6bc7a5 commit 1169246
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/CI_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,7 @@ jobs:
env:
WZ_REPO_PATH: ${{ steps.settings.outputs.WZ_REPO_PATH }}
WZ_ARCHIVE_PATH: '${{ github.workspace }}\output\archive\warzone2100_${{ steps.settings.outputs.WZ_BUILD_DESC }}_archive.zip'
WZ_DEBUGSYMBOLS_PATH: '${{ github.workspace }}\output\debugsymbols\warzone2100_${{ steps.settings.outputs.WZ_BUILD_DESC }}.DEBUGSYMBOLS.7z'
SOURCE_BUNDLE_OUTPUT_DIR: '${{ github.workspace }}\output\sentry_source_bundles'
run: |
# Download sentry-cli
Expand All @@ -689,9 +690,14 @@ jobs:
# Extract the WZ archive to a temporary path
echo "::group::Expanding archive ..."
Expand-Archive -LiteralPath "${env:WZ_ARCHIVE_PATH}" -DestinationPath "$(pwd)\wz_extracted"
echo "Expanding archive ... Done"
# Extract the debug symbols to the temporary path's "bin" directory
$SYMBOLS_OUTPUT_DIR = "$(pwd)\wz_extracted"
echo "Extracting debug symbols ..."
Start-Process "7z" -ArgumentList "x","${env:WZ_DEBUGSYMBOLS_PATH}","-o${SYMBOLS_OUTPUT_DIR}","-aos" -Wait
echo "Extracting debug symbols ... Done"
# Remove any .sym files from extracted archive
Remove-Item "$(pwd)\wz_extracted\bin\*" -Recurse -Include *.sym
echo "Expanding archive ... Done"
Get-ChildItem -Path "$(pwd)\wz_extracted\bin" -Recurse
echo "::endgroup::"
# Create the Sentry source bundle
Expand Down

0 comments on commit 1169246

Please sign in to comment.