Skip to content

ci: ccache for every build type, Ninja on Windows (0162) - #464

Merged
rmorozov merged 3 commits into
masterfrom
claude/project-thread-bfrq5u
Oct 11, 2026
Merged

rmorozov merged 3 commits into
masterfrom
claude/project-thread-bfrq5u

Conversation

@rmorozov

@rmorozov rmorozov commented Oct 11, 2026 •

Copy link
Copy Markdown
Member

Requested by Ruslan · project thread

Before: every CI job compiled the whole tree from scratch. macOS build steps summed to 47 job-minutes on 2026-10-03 and 166 on 2026-10-11 (macos-15 C++23 Debug 16 -> 46 min), the master macOS workflow took 57-150 min, and MSVC built serially with NMake (15-20 min per job). Six macOS jobs also queued behind the free plan's 5 macOS runners.

After: Linux, sanitizer, macOS, Windows, Conan and fuzz jobs restore a per-job ccache (.github/actions/setup-ccache). Windows builds with Ninja in parallel, with /Z7 so ccache can cache MSVC objects. macOS runs 4 jobs instead of 6 (three Release rows plus one Debug on macos-15 C++20).

Measured on this PR (same commit, cold run, then re-run with the cache the first run saved; build step per job)

before (master 89aa3b7) cold warm
macOS build step 13-46 min similar 4-10 s
macOS workflow, wall 57 min 60 min 6.5 min
Windows build step 15-20 min (NMake) 8 min 0.8-1.2 min
Linux build step (Release/Debug/sanitizer rows) 2.5-12 min similar 3 s
Linux workflow, wall 23 min 28 min 6 min (coverage, uncached, 4 min is the longest job)

Cold runs include queueing behind other runs. Warm numbers need a cache: PRs restore master's, and only master pushes save it, so a PR is warm once this lands and master has run once. During measurement this branch saved too; that is removed in the last commit.

Left out (docs/tasks/0162): CodeQL (a cache hit hides the compile from its extractor), benchmark (path-sensitive instruction gate), coverage (.gcno with ccache).

Roles: main session only. Verifier not run (CI-only change). Red pushes: 0.

🤖 Generated with Claude Code

https://claude.ai/code/session_01SiUW6zog3Gpn13eX59fE1c

Builds compiled everything from scratch in every job (macOS build steps grew
from 47 to 166 job-minutes between Oct 3 and Oct 11) and MSVC built serially
with NMake. Jobs now restore a per-job ccache saved by master pushes.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SiUW6zog3Gpn13eX59fE1c
@rmorozov rmorozov self-assigned this Oct 11, 2026
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SiUW6zog3Gpn13eX59fE1c
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SiUW6zog3Gpn13eX59fE1c
@rmorozov
rmorozov marked this pull request as ready for review October 11, 2026 19:07
@rmorozov
rmorozov merged commit 5ba52e9 into master Oct 11, 2026
34 checks passed
rmorozov pushed a commit that referenced this pull request Oct 11, 2026
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMcWcpGwhiaEs33YjAgEV4
rmorozov added a commit that referenced this pull request Oct 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants