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

Implement ccache as part of Docker builds? #75

Open
jauderho opened this issue Nov 4, 2021 · 1 comment
Open

Implement ccache as part of Docker builds? #75

jauderho opened this issue Nov 4, 2021 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@jauderho
Copy link
Owner

jauderho commented Nov 4, 2021

ccache is a compiler cache for C code. I was trying to figure out if it was possible (and useful) to use ccache across multiple GHA runs in an attempt to lower compile times for nginx etc. builds.

I was playing around with https://github.com/jauderho/dockerfiles/blob/55906f659f6f5b8e95106e8071451c5fa587a859/.github/workflows/nginx.yml but was not able to successfully come with a config that uses both actions/cache and cache-from: type=gha

If anyone wants to take a run at this, it would be much appreciated.

@jauderho jauderho added the help wanted Extra attention is needed label Nov 4, 2021
@jauderho
Copy link
Owner Author

jauderho commented Nov 8, 2021

I took another run at this after thinking more about it and think I'm part of the way there. Just need to figure out how to pass cache files in and out of the builder.

Here's the WIP: https://github.com/jauderho/sandbox/blob/main/.github/workflows/ccache.yml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant