Skip to content

Add split debug archives#122

Open
tamird wants to merge 1 commit into
taiki-e:mainfrom
tamird:codex/split-debug-archives
Open

Add split debug archives#122
tamird wants to merge 1 commit into
taiki-e:mainfrom
tamird:codex/split-debug-archives

Conversation

@tamird

@tamird tamird commented Jun 6, 2026

Copy link
Copy Markdown

Add a debug-archive option that keeps release binaries small while
publishing their debug information as a separate release asset. This follows
up on #48.

Linux uses objcopy to extract conventional DWARF into a .debug file and
adds a GNU debug link to the binary. This avoids Cargo split DWARF packages,
which are not supported by all profiling and debugging tools. Darwin uses
Cargo packed debug information and publishes the generated dSYM.

The debug archive mirrors the binary archive layout, participates in checksum
generation and release upload retries, and is exposed as an action output. CI
checks detached source-level symbolication on Linux and Darwin.

The option rejects the cross build tool and universal Darwin targets rather
than producing artifacts with ambiguous or unavailable tooling. Cargo-based
cross builds can provide a target-compatible objcopy command explicitly.

Developed with assistance from OpenAI Codex, an LLM.

@tamird tamird force-pushed the codex/split-debug-archives branch 2 times, most recently from 3be9ac7 to 837aaf3 Compare June 6, 2026 02:24
@tamird tamird marked this pull request as ready for review June 6, 2026 02:27
Add a debug-archive input that preserves optimized release binaries
while publishing detached debug data as a separate asset. Darwin builds
use Cargo packed dSYM output; Linux builds use objcopy so the companion
contains conventional DWARF and the executable keeps a GNU debug link.

Reject unsupported cross and universal Darwin configurations instead of
silently producing unusable artifacts. Verify UUIDs and source-level
symbolication in CI.

Developed with assistance from OpenAI Codex, an LLM.
@tamird tamird force-pushed the codex/split-debug-archives branch from 837aaf3 to 618a41c Compare June 6, 2026 04:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant