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

ci(c): enable CCache for builds #130

Open
lidavidm opened this issue Sep 19, 2022 · 2 comments
Open

ci(c): enable CCache for builds #130

lidavidm opened this issue Sep 19, 2022 · 2 comments

Comments

@lidavidm
Copy link
Member

The builds are reasonably quick right now, but we should play nice with shared resources.

@assignUser
Copy link
Member

The issue is that the actions/cache action is broken for use with ccache as caches are immutable, so no updates on primary cache hit. The only way around this is to invalidate the cache every time via a unique key (kind of defeating the idea of a cache...). This works but a repo is limited to 10G of caches at a time, so it can increase eviction and cache misses.

The same thing is an issue over in arrow and I am looking into a solution atm. Due to PRs (correctly) not having secret access using sccache seems not to be possible. There might be a way to use a read-only sccache though and only update it when running CI on push (with secret access)

@lidavidm
Copy link
Member Author

Hmm, thanks for the context. I guess it's not worth pursuing here yet (or rather, there is much lower-hanging fruit in terms of CI and such)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants