Skip to content

ci: check builds compile through ccache; a tag's two builds start clean - #17

Merged
Xenolphthalein merged 1 commit into
common/7.2from
feat/ccache
Nov 16, 2026
Merged

Xenolphthalein merged 1 commit into
common/7.2from
feat/ccache

Conversation

@Xenolphthalein

Copy link
Copy Markdown
Contributor

What and why

A check build compiled the whole kernel every time, about 22 minutes, even for a change to one driver.

  • ccache for check builds. A check build passes CCACHE_DIR=/work/out/ccache to phoenix's build-tree.sh, which then compiles through ccache (feat: build-tree.sh compiles through ccache when CCACHE_DIR is set phoenix#25).
    • The folder comes from the newest ccache-<headset>-* cache this run may read: its own branch's, its base's, or the default branch's.
    • It is saved again after the build, even a failed one.
  • Tags build clean. A tag's two builds get neither the cache nor CCACHE_DIR: they are the reproducibility test.
  • README: says how much this saves. A change to the configuration touches every file and compiles everything anyway.

It takes effect once the build image brings ccache (overpressure/builder#4, released and pinned in overpressure). Until then build-tree.sh warns and builds as before. The kernel's sources don't change, so this PR's build is found by its key and takes seconds.

Checks

  • actionlint passes
  • No serials, vendor files or private data
  • Changes that write to a headset keep a recoverable path: CI only; a release's builds are unchanged

Hardware

Not needed. The first two check builds of a kernel change after all parts are in show the hit rate.

…the actions cache; a tag's two builds start clean
@Xenolphthalein
Xenolphthalein merged commit 667f945 into common/7.2 Nov 16, 2026
5 checks passed
@Xenolphthalein
Xenolphthalein deleted the feat/ccache branch November 16, 2026 21:09
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.

1 participant