Description:
Release binaries produced by .github/workflows/ci.yml are stripped release builds with no debug symbols published. When a production crash or core dump occurs, there is no way to symbolicate stack traces against the official artifacts, which significantly hampers debugging and support.
Request:
Generate and publish debug symbols for all release artifacts:
- Split debug info during build — for ELF targets (Linux gnu/musl, FreeBSD), use
objcopy --only-keep-debug/--add-gnu-debuglink(orCARGO_PROFILE_RELEASE_SPLIT_DEBUGINFO) to produce.debugfiles; for Windows produce.pdb; for macOS produce.dSYMbundles. - Publish alongside binaries — attach symbol archives to the GitHub release (e.g.,
stalwart-<target>.debug.tar.gz,stalwart-<target>.pdb.zip) in the existingreleasejob, and include them in the existing cosign/sigstore signing andattest-build-provenancesteps so they carry the same provenance guarantees. - Optionally — upload symbols to a symbol server or make them fetchable via
DEBUGINFODforgdb/delve/addr2lineworkflows. - Docker images — either ship a
-debugimage variant or publish the.debugfiles keyed by image digest so symbols can be matched to a specific container build.
Affected components: linux job (Docker bake build in Dockerfile.build), windows, macos, freebsd jobs, release job artifact compression/signing steps.
Justification: Enables post-mortem debugging of crashes reported by users running official releases, without requiring them to rebuild from source with debug info.