Forward CCACHE_DIR into the build container - #113
Merged
Merged
Conversation
bdraco
marked this pull request as ready for review
July 20, 2026 22:47
jesserockz
approved these changes
Aug 24, 2026
Member
Author
|
thanks |
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.
What does this implement/fix?
Forwards CCACHE_DIR into the build container, next to the existing HOME forward. Docker only passes the variable when it is set on the runner, so workflows that do not set it see no change at all. When a workflow does set it to a path under HOME (already bind mounted), ESPHome inside the container picks it up: 2026.7.0 enables ccache for native ESP-IDF esp32 builds whenever the binary is on PATH, and the image base already ships ccache; esp8266 follows via esphome/esphome#17722. The caller pairs this with an actions/cache entry on that dir to persist objects across runs.
Proven out on ratgdo/esphome-ratgdo#658 (with the identical change to their fork of this action, ratgdo#16): esp32 build steps halved on the warm run, 296s to 148s and 281s to 142s, while the esp8266 boards were unaffected as expected.
Types of changes
Related issue (if applicable): fixes
Checklist
python -m unittest discover -s tests) and they pass.tests/have been added or updated to cover the change (if applicable).README.mdhas been updated for any new or changed inputs/outputs (if applicable).