ci(build): save the Windows ccache from merge queue builds #7222

Merged
adriadam10 merged 1 commit from upstream-pr/7222 into main 2026-10-17 18:03:04 +00:00
adriadam10 commented 2026-10-17 17:54:56 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-17T17:54:56Z.


What

Merge queue builds (workflow_dispatch on main) now save the Windows ccache. Until now only push builds saved it, so every queue build restored the last push build's entry and recompiled whatever the queued PRs and the merges since then touched: the windows job took 32 min in queue runs against 6 min warm.

  • Dispatch runs save under ccache-dispatch-windows-*, restore their own newest entry first and fall back to ccache-windows-*.
  • Push builds keep ccache-windows-* only, so main never starts from a cache built from a tree that included unmerged PRs.
  • The extra save is the ccache-action post step: 8 s on the last push build (run 39046759148).
  • Old entries (~160 MB each, 10 GB repo limit) are pruned outside the workflow so no job of the run waits for it: 146 stale ccache-windows-* entries were removed today, which brought the cache from 10.73 GB to 4.21 GB.

Tested

  • actionlint passes on build.yml.
  • The key expressions were checked against hendrikmuhs/ccache-action v1.2.24: the key is prefixed ccache-<key>-<timestamp>, and the action adds the ccache- prefix to restore keys.
  • Hit rates will be visible in the first queue builds after the merge.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4902532848 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7222). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-17T17:54:56Z. --- ### What Merge queue builds (`workflow_dispatch` on main) now save the Windows ccache. Until now only push builds saved it, so every queue build restored the last push build's entry and recompiled whatever the queued PRs and the merges since then touched: the windows job took 32 min in queue runs against 6 min warm. - Dispatch runs save under `ccache-dispatch-windows-*`, restore their own newest entry first and fall back to `ccache-windows-*`. - Push builds keep `ccache-windows-*` only, so main never starts from a cache built from a tree that included unmerged PRs. - The extra save is the ccache-action post step: 8 s on the last push build (run 39046759148). - Old entries (~160 MB each, 10 GB repo limit) are pruned outside the workflow so no job of the run waits for it: 146 stale `ccache-windows-*` entries were removed today, which brought the cache from 10.73 GB to 4.21 GB. ### Tested - `actionlint` passes on `build.yml`. - The key expressions were checked against `hendrikmuhs/ccache-action` v1.2.24: the key is prefixed `ccache-<key>-<timestamp>`, and the action adds the `ccache-` prefix to restore keys. - Hit rates will be visible in the first queue builds after the merge. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-17 18:06:41 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-17T18:06:41Z.


Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 6044 .github/workflows/build.yml
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6238288365 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7222#issuecomment-6238288365). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-17T18:06:41Z. --- <!-- pr-overlap --> Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap. | Pull request | Shared files not compared | |---|---| | [PR 6044](https://www.github.com/boykopovar/AnyPS5/pull/6044) | `.github/workflows/build.yml` |
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!7222
No description provided.