Skip to content

Replace rust-build.action with native toolchain compilation#7

Merged
guifranchi merged 1 commit into
mainfrom
fix/release-workflow-upload
May 13, 2026
Merged

Replace rust-build.action with native toolchain compilation#7
guifranchi merged 1 commit into
mainfrom
fix/release-workflow-upload

Conversation

@guifranchi

Copy link
Copy Markdown
Contributor

Summary

rust-build.action compiles 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 (both target/... and bin/target/... paths fail with "name not matched").

Replaced with the standard approach:

  • dtolnay/rust-toolchain to install Rust 1.88.0 with the x86_64-unknown-linux-musl target
  • musl-tools apt package for the musl C linker
  • cargo build --manifest-path bin/Cargo.toml --target x86_64-unknown-linux-musl --release — binary lands at target/x86_64-unknown-linux-musl/release/actions-runner in the workspace
  • Explicit zip + sha256sum + gh release upload --clobber

Test plan

  • Merge this PR
  • Trigger: gh workflow run release.yml --repo appsignal/actions-runner --field tag=0.1.5
  • Verify: gh release view 0.1.5 --repo appsignal/actions-runner --json assets --jq '.assets[].name' returns actions-runner_v0.1.5_x86_64-unknown-linux-musl.zip and its sha256sum

🤖 Generated with Claude Code

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>
@guifranchi guifranchi self-assigned this May 13, 2026
@backlog-helper

backlog-helper Bot commented May 13, 2026

Copy link
Copy Markdown

Hi @guifranchi,

We've found some issues with your Pull Request.

  • This Pull Request is missing reviewers. Either convert this Pull Request into a draft or ignore this rule by adding [skip review] to your Pull Request body. - (More info)

New issue guide | Backlog management | Rules | Feedback

@guifranchi guifranchi added the bug label May 13, 2026
@guifranchi
guifranchi merged commit 85bfeb6 into main May 13, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant