fix(ci): download the cache action pin before Apple parallel groups
Summary
Apple parallel groups fail at random with Can't find 'action.yml' ... for action 'actions/cache/restore@0057852…'. The runner prepares the remote actions of a local composite only when that composite step starts. Two group members that use actions/cache (the runner builds, or the runner build and the fixture restore) download the same pin at the same time. DownloadRepositoryActionAsync in actions/runner v2.338.2 deletes and recreates the shared _actions/actions/cache/<sha> directory (L1362) before it writes the .completed watermark (L1378), so one member can read an empty directory.
Each exposed job now has a top-level actions/cache/restore reference with if: false. Job setup downloads every top-level reference first (JobExtension.cs L301), so the group members see the watermark and skip the download (L1195). The step never runs. The ci.yml groups, the android.yml group, and the macOS Apple group have no shared nested pin.
Before / after
Before: jobs 144319217894, 144319599611, 144221086745, 144307406385 log two or three Download action repository 'actions/cache@0057852…' lines in one group, and the error follows within 100 ms.
After: job setup downloads actions/cache@0057852… once, and the group logs no download for it.
Validation
Head a2e72ea2be: vitest run scripts/__tests__/apple-ci-impact.test.ts test/ci/root-docs-paths-ignore.test.ts passes. #5364's first CI run shows the fix: job 144323787426 downloads the cache pin at job setup and logs no missing action.yml. Its iOS smoke failure there is the drain timeout that #5362 fixes. CI is pending.
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.