fix(ci): migrate LLVM build cache from runner.tool_cache to actions/cache#802
Merged
zhangstevenunity merged 1 commit intoJun 12, 2026
Merged
Conversation
|
Note Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported. |
Codex Review该评论由 review 机器人自动更新。
SummaryReview failed at stage Findings未生成结构化 findings,因为 review 过程提前失败。 Log Tail |
956adfc to
87b0ce7
Compare
Replace the runner-local tool cache with a git-SHA-keyed GitHub Actions cache so that different LLVM versions (or refs/tags) never share stale build artifacts. When someone changes LLVM_REF or LLVM_TAG the cache key changes and the build tree starts fresh. Key changes: - Resolve the LLVM source SHA via git ls-remote and embed it in the cache key (llvm-build-<sha>-assert-v1). - Restore the build directory from cache before building; skip cmake configure when a valid CMakeCache already exists. - Save the build directory to cache after a fresh build. - Both restore and save steps use continue-on-error so the pipeline is not blocked when a self-hosted runner lacks cache service access. - Accept LLVM_TAG as an alternative to LLVM_REF for forward compatibility with upcoming LLVM version upgrades. Co-Authored-By: Claude <noreply@anthropic.com>
87b0ce7 to
0b36f8b
Compare
A3 板测完成(有跳过)
|
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.
背景
ci_sim.yml目前把 LLVM 构建产物放在runner.tool_cache下,不同 LLVM 版本共享同一目录。当有人换 LLVM_REF/LLVM_TAG 时,各 runner 上残留的旧产物会互相污染,导致各种不一致的构建错误(如smt.py缺失、编译器不一致等)。build_wheel.yml和build_wheel_mac.yml已经在用actions/cache@v4,本 PR 让ci_sim.yml对齐这个模式。修改
git ls-remote获取 LLVM 源 SHA,构建 keyllvm-build-<sha>-assert-v1continue-on-error: true确保 cache 服务不可用时不会阻断流程continue-on-error: trueLLVM_TAG(未来 PR)和LLVM_REF效果
🤖 Generated with Claude Code