You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ace4f60
Browse filesBrowse the repository at this point in the historyBrowse files
feat: get static binaries from per-version releases (#510)
Before: `clang-tools-manager` downloaded every static binary from the
single release behind `releases/latest` (`2026.09.01-5fb8802d`), using
that release's `versions.json` at build time. Since
cpp-linter/clang-tools-static-binaries#142, new LLVM builds no longer go
into that release, so they never reach clang-tools-manager.
After: the build script reads the static binaries'
[`index.json`](https://cpp-linter.github.io/clang-tools-static-binaries/index.json),
which lists one immutable release per LLVM version (`llvm-12.0.1` …
`llvm-23.1.0`). Each binary is downloaded from its own version's release
and checked against that release's `SHA512SUMS`.
How: `build.rs` fetches `index.json` (still cached for 24 hours, and
still shipped in the crate for docs.rs, now as
`static-binaries-index.json`), checks `schema_version == 1`, emits
`MIN/MAX_CLANG_TOOLS_VERSION` as before, and writes a `(major, release
tag)` table to `OUT_DIR`. `find_suitable_version()` now returns the tag
along with the version. The cached `SHA512SUMS` moved to
`static_dist/<tag>/SHA512SUMS`, so a rebuilt release (`llvm-X.Y.Z-2`)
never reuses stale checksums. The pre-seed workflow, the dev-test
version loop and `nur seed versions` read the new file. The public API
does not change.
Tested locally: lib tests pass, and a temporary test downloaded and
verified clang-format 12 and 23 from their own releases.
<!-- claude-projects-attribution: {"github_login":"shenxianpeng"} -->
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Static binary downloads now use version-specific release information
and checksum data.
* ARM64 is listed alongside x86_64 as a supported architecture,
including on Windows.
* **Bug Fixes**
* Version information is now retrieved from the published static
binaries index across builds, tests, and package preparation.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Co-authored-by: Xianpeng Shen <3353385+shenxianpeng@users.noreply.github.com>
0 commit comments