Skip to content

fix(ci): unbreak Anchor Build & Lint (prebuilt anchor-cli + clippy/fmt) - #2

Merged
OxToF merged 1 commit into
mainfrom
claude/busy-heisenberg-94da3f
Jul 18, 2026
Merged

fix(ci): unbreak Anchor Build & Lint (prebuilt anchor-cli + clippy/fmt)#2
OxToF merged 1 commit into
mainfrom
claude/busy-heisenberg-94da3f

Conversation

@OxToF

@OxToF OxToF commented Jul 18, 2026

Copy link
Copy Markdown
Owner

Problème

Le job Anchor Build & Lint échoue sur tous les push main (0 run vert sur les 100 derniers) au step Install Anchor CLI : cargo install anchor-cli compile depuis les sources et tire hidapi, dont le build script exige libudev-dev — retiré des images runner ubuntu-latest mi-2026.

Conséquence : cargo fmt --check, clippy -D warnings et anchor build n'ont jamais tourné en CI.

Fix

  • Workflow : installation du binaire Linux précompilé officiel anchor-0.32.1-x86_64-unknown-linux-gnu (~2 s, aucune dépendance système) au lieu de la compilation source (~15 min).
  • cargo fmt appliqué (jamais enforcé jusqu'ici — diffs purement cosmétiques).
  • 3 erreurs clippy -D warnings corrigées : doc comment flottant (lib.rs:78), cast inutile (amm.rs:72), manual_range_contains (lib.rs:2151). Aucun changement de comportement.

🤖 Generated with Claude Code

The 'Install Anchor CLI' step compiled anchor-cli from source, which pulls
hidapi → libudev-dev, no longer present on ubuntu-latest runner images.
Every CI run on main failed there, so fmt/clippy/anchor-build never ran.

- Install the official prebuilt v0.32.1 Linux binary instead (~2 s, no
  system deps, no 15-min compile)
- Apply cargo fmt (never enforced until now)
- Fix the 3 clippy -D warnings errors: floating doc comment, unnecessary
  cast, manual range contains

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 18, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
soladrome-lzn5 Error Error Jul 18, 2026 11:40pm

@OxToF
OxToF merged commit 81fd128 into main Jul 18, 2026
4 of 5 checks passed
@OxToF
OxToF deleted the claude/busy-heisenberg-94da3f branch July 20, 2026 22:45
OxToF added a commit that referenced this pull request Jul 20, 2026
…mt (#2)

The 'Install Anchor CLI' step compiled anchor-cli from source, which pulls
hidapi → libudev-dev, no longer present on ubuntu-latest runner images.
Every CI run on main failed there, so fmt/clippy/anchor-build never ran.

- Install the official prebuilt v0.32.1 Linux binary instead (~2 s, no
  system deps, no 15-min compile)
- Apply cargo fmt (never enforced until now)
- Fix the 3 clippy -D warnings errors: floating doc comment, unnecessary
  cast, manual range contains

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
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.

1 participant