Skip to content
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

Make ccache caching work on CI #5

Open
zbeekman opened this issue Dec 21, 2022 · 1 comment
Open

Make ccache caching work on CI #5

zbeekman opened this issue Dec 21, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@zbeekman
Copy link
Member

RUN --mount=type=cached,target=... caches are not preserved/used between steps on CI. On my laptop, when the configure and build LLVM layer of the "builder" image in the dockerfile can no longer be pulled directly from the cached layer (say a previous layer was updated or needs to be rebuilt) the build time--thanks to the ccache cache--is cut from ~2 hours to ~4 minutes. However, with GHA CI, these caches seem to not be reused between runs, so a full 2.5 hour rebuild of LLVM takes place if the layer needs to be rebuilt.

@zbeekman zbeekman added the bug Something isn't working label Dec 21, 2022
@zbeekman zbeekman self-assigned this Dec 21, 2022
zbeekman added a commit that referenced this issue Jan 17, 2023
 - Will help when dealing with #5 (making ccache work on CI)
@zbeekman
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant