Repository navigation
ci: reuse compiled objects between builds with ccache - #31
Merged
Merged
Conversation
Every build compiled the whole kernel from scratch on a 4-core hosted runner (amd64 ~80 min), even for a packaging-only change. ccache now carries objects between runs in the repository's own Actions cache, per architecture and kernel version, and each job prints its hit rate. main restores only caches saved by main, so a pull request cannot feed a release build. For the cache to hit, nothing per-build may reach the kernel config, which every file includes: - The build number moves from CONFIG_LOCALVERSION to a localversion-00-build file in the source tree. The kernel puts it ahead of CONFIG_LOCALVERSION, so the release stays 7.2.10-<build>-smoothkernel, which the existing exact .deb-name check confirms. - Signing material goes to a fixed path instead of a mktemp one, since the key path is part of the config.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Every build compiled the whole kernel from scratch on a 4-core hosted
runner (amd64 ~80 min), even for a packaging-only change. ccache now
carries objects between runs in the repository's own Actions cache, per
architecture and kernel version, and each job prints its hit rate. main
restores only caches saved by main, so a pull request cannot feed a
release build.
For the cache to hit, nothing per-build may reach the kernel config,
which every file includes:
localversion-00-build file in the source tree. The kernel puts it ahead
of CONFIG_LOCALVERSION, so the release stays 7.2.10--smoothkernel,
which the existing exact .deb-name check confirms.
the key path is part of the config.
.github/workflows/release.yml | 50 ++++++++++++++++++++++++++++++++++++++++---
docs/CI_RELEASES.md | 37 ++++++++++++++++++++++++--------
recipes/build-kernel.sh | 22 +++++++++++--------
3 files changed, 88 insertions(+), 21 deletions(-)