Skip to content

fix(installer): try native aarch64-unknown-linux-musl build for arm - #764

Merged
twitchyliquid64 merged 1 commit into
mainfrom
tom/release
Jul 15, 2026
Merged

fix(installer): try native aarch64-unknown-linux-musl build for arm#764
twitchyliquid64 merged 1 commit into
mainfrom
tom/release

Conversation

@twitchyliquid64

@twitchyliquid64 twitchyliquid64 commented Jul 15, 2026

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • Chores
    • Updated Linux ARM64 release builds to run directly on ARM hardware.
    • Switched from cross-compilation to native Rust builds targeting aarch64-unknown-linux-musl.
    • Added required musl setup (system packages, Rust musl target, and musl linker configuration).
    • Kept producing the same three Linux ARM64 packages (mip, minimal, minimald) with the same job timeout.

@coderabbitai

coderabbitai Bot commented Jul 15, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The ARM64 release workflow now uses a native ARM runner, configures Rust’s musl target and linker, retains ARM-specific caching, and builds the mip, minimal, and minimald packages with Cargo.

Changes

ARM64 release build

Layer / File(s) Summary
Native ARM64 musl build
.github/workflows/release.yml
The job uses ubuntu-26.04-arm, installs musl tooling, configures aarch64-unknown-linux-musl with musl-gcc, retains ARM-specific caching, removes cross, and builds the same three packages with Cargo.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

Suggested reviewers: norrietaylor

Poem

I’m a rabbit on an ARM-built track,
With musl tools neatly packed.
Cross hops out, Cargo runs,
Three small builds beneath the sun.
Release artifacts leap ahead!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: switching the ARM installer build to a native aarch64-unknown-linux-musl build.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/release.yml:
- Around line 183-209: Revert the changes in the release workflow, including the
affected job steps and the corresponding edits around the additional referenced
lines. Do not modify files under .github/workflows; any required CI adjustment
must go through the CODEOWNER-gated maintenance process.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 3a8694cf-b544-43ed-80b6-eabb37c57973

📥 Commits

Reviewing files that changed from the base of the PR and between 8f2c47c and e4a1492.

📒 Files selected for processing (1)
  • .github/workflows/release.yml

Comment thread .github/workflows/release.yml
@twitchyliquid64
twitchyliquid64 merged commit a00bace into main Jul 15, 2026
26 of 27 checks passed
@twitchyliquid64
twitchyliquid64 deleted the tom/release branch July 15, 2026 16:54

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/release.yml:
- Around line 186-200: Remove the first actions/checkout@v7 step before the
“Free Disk Space” action in the release workflow. Keep the
endersonmenezes/free-disk-space@v3 cleanup step unchanged and retain the single
checkout step after it.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 587a1c61-b8d4-40cc-b1a3-52372f2befcc

📥 Commits

Reviewing files that changed from the base of the PR and between e4a1492 and 88a4522.

📒 Files selected for processing (1)
  • .github/workflows/release.yml

Comment on lines 186 to +200
- uses: actions/checkout@v7
- name: Install cross
uses: taiki-e/install-action@v2
- name: Free Disk Space
# Static release build of the full workspace; the cargo target dir
# is the largest in any of the linux jobs. `remove_tool_cache: true`
# is safe even without a `dtolnay/rust-toolchain` step — the
# pre-installed Rust toolchain on ubuntu-latest lives in
# `~/.rustup` + `~/.cargo`, not `/opt/hostedtoolcache`, so
# `rustup target add` below still resolves.
uses: endersonmenezes/free-disk-space@v3 # Use @main for latest, @v3 for stable
with:
tool: cross
remove_android: true
remove_dotnet: true
remove_haskell: true
remove_tool_cache: true
- uses: actions/checkout@v7

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀 Performance & Scalability | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

sed -n '150,230p' .github/workflows/release.yml

Repository: gominimal/minimal

Length of output: 4637


🏁 Script executed:

wc -l .github/workflows/release.yml && sed -n '1,260p' .github/workflows/release.yml

Repository: gominimal/minimal

Length of output: 13386


🏁 Script executed:

python3 - <<'PY'
from pathlib import Path
p = Path('.github/workflows/release.yml')
text = p.read_text()
for i, line in enumerate(text.splitlines(), 1):
    if 170 <= i <= 210:
        print(f"{i:4}: {line}")
PY

Repository: gominimal/minimal

Length of output: 2481


🏁 Script executed:

sed -n '160,210p' .github/workflows/release.yml

Repository: gominimal/minimal

Length of output: 2888


🏁 Script executed:

grep -n "actions/checkout@v7\|free-disk-space" -n .github/workflows/release.yml

Repository: gominimal/minimal

Length of output: 788


Remove the first checkout. endersonmenezes/free-disk-space@v3 doesn’t need the repository, so the checkout before it is redundant; keep a single actions/checkout@v7 after cleanup.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/release.yml around lines 186 - 200, Remove the first
actions/checkout@v7 step before the “Free Disk Space” action in the release
workflow. Keep the endersonmenezes/free-disk-space@v3 cleanup step unchanged and
retain the single checkout step after it.

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.

2 participants