chore: CI: upload the partial Lake cache after a failed build After "Build Target Stage" failed, "Upload Lake Cache" re-ran `lake build -o ../build/lake-mappings.jsonl`, which retried the failed modules, failed again and stopped the step before `lake cache put`, adding a second red step with misleading errors. `lake build -o` does write the mappings of the targets that did build even when it fails, but they were never uploaded. Give "Build Target Stage" the id `build`. After a failed build, collect the mappings with `lake build --no-build -o` instead, which does not retry the failed targets, ignore its failure, and upload what did build with `lake cache put`. After a successful build the step is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This is the repository for Lean 4.
See Install Lean.
Please read our Contribution Guidelines first.
See Building Lean.