Skip to content

Commit 3f7fee9

Browse files
authored
ci: self-contained windows zip and changelog (#82)
The Windows zip now includes the handler's symbol file, added changelog.
1 parent b3eda62 commit 3f7fee9

3 files changed

Lines changed: 31 additions & 20 deletions

File tree

‎.github/workflows/main.yml‎

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,6 @@ jobs:
103103
run: |
104104
bundle exec ruby ./test.rb -v
105105
106-
- name: Crashpad distribution ZIP
107-
run: |
108-
ruby backtrace/save_artifacts.rb --output Crashpad_Windows_build.zip
109-
110106
- name: Verify handler debug record
111107
if: matrix.generator == 'Visual Studio 17 2022'
112108
shell: pwsh
@@ -136,27 +132,28 @@ jobs:
136132
if: matrix.generator == 'Visual Studio 17 2022'
137133
shell: pwsh
138134
run: |
139-
New-Item -ItemType Directory -Force symbols | Out-Null
140-
& $env:DUMP_SYMS cbuild/handler/Release/crashpad_handler.pdb --output symbols/crashpad_handler-x86_64.sym
141-
Get-Content symbols/crashpad_handler-x86_64.sym -TotalCount 1
135+
& $env:DUMP_SYMS cbuild/handler/Release/crashpad_handler.pdb --output cbuild/handler/Release/crashpad_handler.sym
136+
Get-Content cbuild/handler/Release/crashpad_handler.sym -TotalCount 1
142137
143138
- name: Verify .sym matches the binary
144139
if: matrix.generator == 'Visual Studio 17 2022'
145140
shell: pwsh
146141
run: |
147-
$f = (Get-Content symbols/crashpad_handler-x86_64.sym -TotalCount 1) -split '\s+'
142+
$f = (Get-Content cbuild/handler/Release/crashpad_handler.sym -TotalCount 1) -split '\s+'
148143
if ($f[0] -ne 'MODULE' -or $f[4] -ne 'crashpad_handler.pdb') { throw "unexpected MODULE line: $f" }
149144
if ($f[3] -ne $env:HANDLER_DEBUG_ID) { throw ".sym debug id $($f[3]) != binary debug id $env:HANDLER_DEBUG_ID" }
150-
$stack = (Select-String -Path symbols/crashpad_handler-x86_64.sym -Pattern '^STACK ' -AllMatches).Count
145+
$stack = (Select-String -Path cbuild/handler/Release/crashpad_handler.sym -Pattern '^STACK ' -AllMatches).Count
151146
if ($stack -eq 0) { throw ".sym has no STACK (unwind) records" }
152147
Write-Host "OK: .sym matches crashpad_handler.exe ($env:HANDLER_DEBUG_ID), $stack unwind records"
153148
149+
- name: Crashpad distribution ZIP
150+
run: |
151+
ruby backtrace/save_artifacts.rb --output Crashpad_Windows_build.zip
152+
154153
- uses: actions/upload-artifact@v4
155154
with:
156155
name: Crashpad_Windows_build_${{ matrix.generator }}
157-
path: |
158-
Crashpad_Windows_build.zip
159-
symbols/*.sym
156+
path: Crashpad_Windows_build.zip
160157

161158
build-macos:
162159
runs-on: macos-latest
@@ -266,9 +263,7 @@ jobs:
266263
set -euo pipefail
267264
tag="${GITHUB_REF_NAME}"
268265
mkdir -p release
269-
win="artifacts/Crashpad_Windows_build_Visual Studio 17 2022"
270-
cp "$win/Crashpad_Windows_build.zip" "release/Crashpad_Windows_x64_${tag}.zip"
271-
cp "$win"/symbols/*.sym release/
266+
cp "artifacts/Crashpad_Windows_build_Visual Studio 17 2022/Crashpad_Windows_build.zip" "release/Crashpad_Windows_x64_${tag}.zip"
272267
cp "artifacts/Crashpad_Linux_build_Ninja/Crashpad_Linux_build.zip" "release/Crashpad_Linux_x86_64_${tag}.zip"
273268
for arch in arm64 x86_64; do
274269
cp "artifacts/Crashpad_MacOs_build_${arch}_Ninja/Crashpad_MacOs_build_${arch}.zip" "release/Crashpad_macOS_${arch}_${tag}.zip"
@@ -279,8 +274,8 @@ jobs:
279274
(cd release && sha256sum * > SHA256SUMS.txt)
280275
ls -la release
281276
282-
- uses: softprops/action-gh-release@v2
283-
with:
284-
files: release/*
285-
draft: true
286-
generate_release_notes: true
277+
- name: Draft the GitHub release
278+
env:
279+
GH_TOKEN: ${{ github.token }}
280+
GH_REPO: ${{ github.repository }}
281+
run: gh release create "$GITHUB_REF_NAME" release/* --draft --verify-tag --title "Version ${GITHUB_REF_NAME#v}" --notes ""

‎CHANGELOG.md‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Backtrace Crashpad Release Notes
2+
3+
## Version 0.3.0
4+
5+
Improvements
6+
- Windows: Added `crashpad_handler.pdb` and `crashpad_handler.sym` to the zip.
7+
- Windows: `client.lib` now embeds debug information.
8+
- All platforms: Binaries are now optimized Release builds.
9+
- Linux, Android: Attachments can be added after initialization.
10+
11+
Bugfixes
12+
- Android: Pending reports are no longer dropped when an upload asks for a retry.
13+
14+
Note
15+
- Windows: The handler executable is now `crashpad_handler.exe` (was `handler.exe`).

‎backtrace/save_artifacts.rb‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ def gather_binaries dir = binary_dir
9090
[ 'handler/Debug/crashpad_handler.pdb', 'bin/crashpad_handler.pdb' ],
9191
[ 'handler/Release/crashpad_handler.pdb', 'bin/crashpad_handler.pdb' ],
9292
[ 'handler/crashpad_handler.pdb', 'bin/crashpad_handler.pdb' ],
93+
[ 'handler/Release/crashpad_handler.sym', 'bin/crashpad_handler.sym' ],
9394
]
9495
Dir.chdir dir do
9596
files.each do |file, name|

0 commit comments

Comments
 (0)