ci: reuse compiler state from cancelled PR runs

Closed
TE
2mo ago
+39-4

Summary

Cancelled PR runs can leave useful Xcode compilation-cache objects behind, but the current CI points the compiler CAS at $RUNNER_TEMP, so replacement runs lose that local state. This change keeps a branch-and-PR scoped CAS under the runner tool cache, allowing a superseding run to reuse compatible objects from an earlier cancelled run.

The existing read-only GitHub Actions cache remains the cross-run seed. The local cache is scoped by PR number, branch, and compiler fingerprint so objects do not cross contributor or toolchain boundaries. Successful runs report the retained CAS size in the workflow summary for measurement.

The live queue also showed package-test failures allowing the expensive macOS compile/admission and six app-host shards to start anyway. Those macOS jobs now wait for swift-package-tests to pass, preventing predictable fan-out waste.

Validation

  • actionlint .github/workflows/ci.yml
  • git diff --check

Refs #13088

Summary by CodeRabbit

  • Chores
    • Improved automated build and test validation by ensuring related checks complete successfully before dependent workflows proceed.
    • Added persistent compilation caching for macOS builds to support more consistent and efficient validation runs.
    • Added reporting for reusable compilation state and cache size in workflow summaries.