-
Notifications
You must be signed in to change notification settings - Fork 365
ci/ci: enable ccache #2936
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Ricardo Salveti (ricardosalveti)
merged 6 commits into
qualcomm-linux:master
from
quaresmajose:ccache
Sep 12, 2026
Merged
ci/ci: enable ccache #2936
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
37fa5f8
github/workflows: pin KAS_CONTAINER_IMAGE to v5.5
quaresmajose 588e03d
github/workflows: bump KAS_CONTAINER_IMAGE to 5.5-9 for ccache
quaresmajose 5451b3d
ci: add KAS configuration for ccache
quaresmajose 35458a2
ci/ci: enable ccache
quaresmajose 3656304
ci/ccache: add table with enabled recipes
quaresmajose 39cf185
github/workflows/sstate-cleanup: exclude ccache
quaresmajose File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| # yaml-language-server: $schema=https://raw.githubusercontent.com/siemens/kas/master/kas/schema-kas.json | ||
|
|
||
| header: | ||
| version: 14 | ||
|
|
||
| local_conf_header: | ||
| ccache: | | ||
| INHERIT += "ccache" | ||
| CCACHE_MAXSIZE = "200G" | ||
| CCACHE_TOP_DIR = "${SSTATE_DIR}/ccache" | ||
| # required to build '-native' target | ||
| HOSTTOOLS += "ccache" | ||
| ASSUME_PROVIDED += "ccache-native" | ||
|
|
||
| ccache-recipe-contol: | | ||
| # disable all recipes | ||
| CCACHE_DISABLE = "1" | ||
| # table with enabled recipes | ||
| CCACHE_DISABLE:pn-clang = "0" | ||
| CCACHE_DISABLE:pn-clang-native = "0" | ||
| CCACHE_DISABLE:pn-gcc = "0" | ||
| CCACHE_DISABLE:pn-gcc-cross-aarch64 = "0" | ||
| CCACHE_DISABLE:pn-gcc-cross-arm = "0" | ||
| CCACHE_DISABLE:pn-glibc = "0" | ||
| CCACHE_DISABLE:pn-llvm = "0" | ||
| CCACHE_DISABLE:pn-llvm-native = "0" | ||
| CCACHE_DISABLE:pn-linux-qcom = "0" | ||
| CCACHE_DISABLE:pn-linux-qcom-next = "0" | ||
| CCACHE_DISABLE:pn-linux-yocto = "0" | ||
| CCACHE_DISABLE:pn-rust = "0" | ||
|
lumag marked this conversation as resolved.
|
||
| CCACHE_DISABLE:pn-rust-native = "0" | ||
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we just enable ccache for all the recipes? What are the drawbacks?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In internal discussions, we concluded that there wasn't much value in enabling it for everyone. However, the heavier packages in the compilation would always have some benefit. In reality, it's a trade-off between space occupied and benefit utilized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why? What was the main argument for deciding it this way? Just to document it here. Do we have any stats?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't have stats and that conclusion came from a internal slack discussion.
Basically, we'll have to divide the available space among all existing components. Focusing a large portion of the allocated space on components that are fast enough even without ccache. We then conclude that it would be more efficient if we allocated space only to the components that take the most advantage of using ccache.
I'll add it to the commit.