Add split debug archives#122
Open
tamird wants to merge 1 commit into
Open
Conversation
3be9ac7 to
837aaf3
Compare
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.
837aaf3 to
618a41c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a
debug-archiveoption that keeps release binaries small whilepublishing their debug information as a separate release asset. This follows
up on #48.
Linux uses
objcopyto extract conventional DWARF into a.debugfile andadds 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
crossbuild tool and universal Darwin targets ratherthan producing artifacts with ambiguous or unavailable tooling. Cargo-based
cross builds can provide a target-compatible
objcopycommand explicitly.Developed with assistance from OpenAI Codex, an LLM.