Skip to content

Update release.yml for jetson-agx-orin - #116

Draft
geckoflume wants to merge 1 commit into
RustingStudio:mainfrom
geckoflume:jetson-agx-orin
Draft

geckoflume wants to merge 1 commit into
RustingStudio:mainfrom
geckoflume:jetson-agx-orin

Conversation

@geckoflume

Copy link
Copy Markdown

What changed and why

Describe the problem and the resulting behavior. Link the related issue, if any.

Verification

Describe the checks you ran and their results. Include screenshots for visual changes and reproducible before/after measurements for performance changes.

Checklist

  • I followed this repository's contribution guide and required checks.
  • I updated documentation or examples where needed.
  • I added regression coverage where it helps verify the change.
  • I have the right to contribute the included code and assets under this repository's contribution terms.

rustflags: -C target-cpu=x86-64-v3
bin: rustingstrata
asset: rustingstrata-linux-x86_64
cross: false

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Low · Maintainability · 1 of 3

Matrix rustflags values are never read; the same flags are hardcoded again in the job env. Someone edits rustflags in a matrix entry, expecting the Jetson or x86 build to change, but the build still uses the hardcoded CARGO_TARGET_*_RUSTFLAGS env values. The two copies drift and the release binary silently keeps the old target-cpu.

Prompt for your AI agent
File: .github/workflows/release.yml
Line: 28
Issue: Matrix `rustflags` values are never read; the same flags are hardcoded again in the job env. Someone edits `rustflags` in a matrix entry, expecting the Jetson or x86 build to change, but the build still uses the hardcoded CARGO_TARGET_*_RUSTFLAGS env values. The two copies drift and the release binary silently keeps the old target-cpu.
Make the smallest change that fixes this, add a test, and change nothing unrelated.

Reply /dismiss (optionally with a reason) if this isn't helpful - Aletheore won't raise it again on this repo.

# AMD Zen and later) instead, without debug info.
RUSTFLAGS: -C target-cpu=x86-64-v3
CARGO_PROFILE_RELEASE_DEBUG: '0'
CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUSTFLAGS: -C target-cpu=x86-64-v3

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Low · Maintainability · 2 of 3

Per-target rustflags and the cross flag are spread across env and matrix instead of being derived from one place. Adding a fourth target requires editing the matrix, a new env var with a mangled triple name, and a separate cross boolean. Forgetting any one of these produces a build with the wrong CPU flags or a missing cross toolchain, and nothing reports the mismatch.

Prompt for your AI agent
File: .github/workflows/release.yml
Line: 46
Issue: Per-target rustflags and the `cross` flag are spread across env and matrix instead of being derived from one place. Adding a fourth target requires editing the matrix, a new env var with a mangled triple name, and a separate `cross` boolean. Forgetting any one of these produces a build with the wrong CPU flags or a missing cross toolchain, and nothing reports the mismatch.
Make the smallest change that fixes this, add a test, and change nothing unrelated.

Reply /dismiss (optionally with a reason) if this isn't helpful - Aletheore won't raise it again on this repo.

CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUSTFLAGS: -C target-cpu=x86-64-v3
CARGO_TARGET_X86_64_PC_WINDOWS_MSVC_RUSTFLAGS: -C target-cpu=x86-64-v3
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_RUSTFLAGS: -C target-cpu=cortex-a78ae
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Low · Maintainability · 3 of 3

Cross-compiler env vars (CC/CXX/LINKER for aarch64) are set job-wide, including for the x86_64 and Windows entries that never use them. On the native x86_64 and Windows jobs the aarch64-linux-gnu-gcc variables are set but the compiler is absent. Any build script that checks CC_<target> for a different target can pick up a wrong compiler, and a future change that adds a native target inherits cross settings it does not need.

Prompt for your AI agent
File: .github/workflows/release.yml
Line: 49
Issue: Cross-compiler env vars (CC/CXX/LINKER for aarch64) are set job-wide, including for the x86_64 and Windows entries that never use them. On the native x86_64 and Windows jobs the aarch64-linux-gnu-gcc variables are set but the compiler is absent. Any build script that checks CC_<target> for a different target can pick up a wrong compiler, and a future change that adds a native target inherits cross settings it does not need.
Make the smallest change that fixes this, add a test, and change nothing unrelated.

Reply /dismiss (optionally with a reason) if this isn't helpful - Aletheore won't raise it again on this repo.

@aletheore

aletheore Bot commented Nov 26, 2026

Copy link
Copy Markdown

Aletheore Flash Lite review

What this PR does. This pull request extends the release workflow so that tagged releases also build a Linux aarch64 binary targeting NVIDIA Jetson AGX Orin (cortex-a78ae, glibc matching JetPack 6), using a cross-compiler on the x86 runner. It also moves the x86-64-v3 RUSTFLAGS from a global env var into per-target settings and sets the output path to a per-target directory. People who run the project on Jetson devices get a prebuilt binary, and maintainers who publish releases are affected by the new build steps and artifact.

Merge confidence Review effort Merge risk
5 / 5 1 / 5 Low
Area Files Lines
.github/workflows 1 +30 −9

3 finding(s) posted as inline review comment(s).

# Severity Category Where
1 🔵 Low Maintainability release.yml:28 Matrix rustflags values are never read; the same flags are hardcoded again in the job env. Someone edits…
2 🔵 Low Maintainability release.yml:46 Per-target rustflags and the cross flag are spread across env and matrix instead of being derived from one…
3 🔵 Low Maintainability release.yml:49 Cross-compiler env vars (CC/CXX/LINKER for aarch64) are set job-wide, including for the x86_64 and Windows…
Review details

Reviewed 1 file(s); skipped 0. Dismissed 0; outside PR diff 0. Grounding: 3 of 4 proposed finding(s).

Fix all with your agent
File: .github/workflows/release.yml
Line: 28
Issue: Matrix `rustflags` values are never read; the same flags are hardcoded again in the job env. Someone edits `rustflags` in a matrix entry, expecting the Jetson or x86 build to change, but the build still uses the hardcoded CARGO_TARGET_*_RUSTFLAGS env values. The two copies drift and the release binary silently keeps the old target-cpu.
Make the smallest change that fixes this, add a test, and change nothing unrelated.

File: .github/workflows/release.yml
Line: 46
Issue: Per-target rustflags and the `cross` flag are spread across env and matrix instead of being derived from one place. Adding a fourth target requires editing the matrix, a new env var with a mangled triple name, and a separate `cross` boolean. Forgetting any one of these produces a build with the wrong CPU flags or a missing cross toolchain, and nothing reports the mismatch.
Make the smallest change that fixes this, add a test, and change nothing unrelated.

File: .github/workflows/release.yml
Line: 49
Issue: Cross-compiler env vars (CC/CXX/LINKER for aarch64) are set job-wide, including for the x86_64 and Windows entries that never use them. On the native x86_64 and Windows jobs the aarch64-linux-gnu-gcc variables are set but the compiler is absent. Any build script that checks CC_<target> for a different target can pick up a wrong compiler, and a future change that adds a native target inherits cross settings it does not need.
Make the smallest change that fixes this, add a test, and change nothing unrelated.

@aletheore

aletheore Bot commented Nov 26, 2026

Copy link
Copy Markdown

🔍 Aletheore evidence diff

What changed
Deterministic, computed from this commit's real scan and import graph - posted on every run, whether or not Flash Review found anything.

  • .github/workflows/release.yml · modified · +30/-9

Aggregate deltas

  • Modules: +0
  • Dependency graph edges: +0
  • Commits: 1

@geckoflume
geckoflume marked this pull request as draft November 26, 2026 08:19
@Vasyl-Trefilov

Copy link
Copy Markdown
Member

Hi, ty for this, an aarch64 build for Jetson would be really nice. I see it is still a draft, so I wait. When it is ready, can you tell if the binary runs on the Orin (CUDA path) and maybe give a small bench line? I could not cross build it here bc I have no aarch64 toolchain

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