Repository navigation
CI: fix ccache cache effectiveness in basic.yml - #108
Merged
Merged
Conversation
Contributor
|
The build matrix job ran ccache-action before actions/checkout, so checkout's directory-cleanup wiped the just-restored .ccache before any compilation, forcing a near-total cache miss on every run regardless of what changed. Move checkout first, matching every other job in this file. Also give the test_report, tap_validate, and source_archive jobs distinct ccache keys — they previously shared the default "ccache" key and thrashed each other's cache despite building different configs.
thetic
force-pushed
the
ci/fix-ccache-ordering-and-keys
branch
from
September 10, 2026 05:19
096d062 to
14826ae
Compare
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.
Description
The
buildmatrix job ranccache-actionbeforeactions/checkout, so checkout's directory-cleanup logic (no.gitexists yet at that point) wiped the just-restored.ccachedirectory before any compilation happened. This forced a near-total cache miss on every run in every leg of the matrix (GNU, Clang, MSVC, sanitizers, etc.), regardless of what source actually changed. Moved checkout to run first, matching every other job in this file.Also gave the
test_report,tap_validate, andsource_archivejobs distinct ccache keys — they previously fell back to the shared default"ccache"key and thrashed each other's cache despite building different configs (defaults+MUTINY_JUNIT_REPORT, plaindefaults, andGNU).Related Issues
Fixes # (issue number)
Type of Change
Manual Verification (Optional)
If you have verified this change on hardware or a simulator not covered by CI (e.g., a specific ARM target), please describe it here:
Checklist
docs/for any user-facing changes.mu::tinynamespace,INCLUDED_MU_TINY_guards,mutiny_C-prefix)..hand.c.cpp) is required for parity.CONTRIBUTING.mdfile to ensure compliance with architectural guidelines.