Repository navigation
Update release.yml for jetson-agx-orin - #116
geckoflume wants to merge 1 commit into
Conversation
| rustflags: -C target-cpu=x86-64-v3 | ||
| bin: rustingstrata | ||
| asset: rustingstrata-linux-x86_64 | ||
| cross: false |
There was a problem hiding this comment.
🔵 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 |
There was a problem hiding this comment.
🔵 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 |
There was a problem hiding this comment.
🔵 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 Flash Lite reviewWhat 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.
3 finding(s) posted as inline review comment(s).
Review detailsReviewed 1 file(s); skipped 0. Dismissed 0; outside PR diff 0. Grounding: 3 of 4 proposed finding(s). Fix all with your agent |
🔍 Aletheore evidence diffWhat changed
Aggregate deltas
|
|
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 |
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