Replace rust-build.action with native toolchain compilation#7
Merged
Conversation
rust-build.action compiles inside a Docker container to an internal target directory not in the mounted workspace volume, so the binary is gone by the time the Package and upload step runs. Replace with dtolnay/rust-toolchain + native cargo build: the binary lands at the standard target/x86_64-unknown-linux-musl/release/actions-runner relative to the workspace, then zip + gh release upload handle the rest. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Hi @guifranchi, We've found some issues with your Pull Request.
|
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.
Summary
rust-build.actioncompiles inside a Docker container to an internal target directory that is NOT in the mounted workspace volume — so the binary is gone by the time the "Package and upload" step runs (bothtarget/...andbin/target/...paths fail with "name not matched").Replaced with the standard approach:
dtolnay/rust-toolchainto install Rust 1.88.0 with thex86_64-unknown-linux-musltargetmusl-toolsapt package for the musl C linkercargo build --manifest-path bin/Cargo.toml --target x86_64-unknown-linux-musl --release— binary lands attarget/x86_64-unknown-linux-musl/release/actions-runnerin the workspacegh release upload --clobberTest plan
gh workflow run release.yml --repo appsignal/actions-runner --field tag=0.1.5gh release view 0.1.5 --repo appsignal/actions-runner --json assets --jq '.assets[].name'returnsactions-runner_v0.1.5_x86_64-unknown-linux-musl.zipand its sha256sum🤖 Generated with Claude Code