Repository navigation
CI: test Linux on aarch64 too; fix the c_char cast clippy rejects there - #27
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
|
Thanks @KkelebekK. Reviewed: the matrix syntax is valid, |
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.
Problem
Releases ship
rigsem-aarch64-unknown-linux-gnu.tar.gz, but CI only builds and tests Linux on x86_64. On aarch64maindoes not pass its own checks:cargo clippy --all-targets -- -D warningsfails.c_charisi8on x86_64 andu8on aarch64, so the cast is a no-op there and clippy rejects it.Fix
.github/workflows/ci.yml: the Linux job is a matrix overubuntu-latest(x86_64) andubuntu-24.04-arm(aarch64, GitHub's hosted ARM runner, free for public repositories),fail-fast: false. Steps unchanged.nvml.rstext():c.to_ne_bytes()[0]instead ofc as u8; the same byte on both architectures, no cast. New unit testc_strings_stop_at_nul_and_keep_high_bytes(bytes above 0x7f, which are negative wherec_charisi8, and the NUL stop).Tests
nvml.rschange, aarch64 failed at clippy with the error above, x86_64 and Windows passed. Second run with it: aarch64 fmt, clippy andcargo testpassed, 169 unit tests and the 13e2e_linuxtests onaarch64-unknown-linux-gnu. Windows also passed; macOS was still queued (runner capacity).e2e_linuxpass, including the NVML device test on an RTX 4070 (it reads names throughtext()).rigsem doctor12/13 ok (only PATH, not installed),status/status --jsonsane (7.9 GB, 4 threads, no supported GPU so VRAM counts as RAM; the V3D GPU is a platform device, not PCI),rigsem runof a shell loop measured 1.0 cores, exit 0. That run is also where I noticed the kind bug fixed in Kinds of shell lines: pass over tests and loop headers ([, test, for, read, case) #25.