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 in CI #4

Open
ViliusSutkus89 opened this issue Jun 24, 2024 · 3 comments
Open

Implement ccache in CI #4

ViliusSutkus89 opened this issue Jun 24, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@ViliusSutkus89
Copy link
Contributor

Currently we do have ccache installed in CI, but I've noticed it is not being used
image

If we split have different ccaches for each package/version/min SDK, all the ccache will definitely not fit inside the allowed GitHub actions cache size.

I suggest we do another manually dispatched workflow - ccache-writer, which iterates over every package, every version and builds for every ABI and every min SDK. This way there's only one cache and all the regular builds are just only readers. Different package versions usually share a lot of the same code. Different min SDK uses different compiler wrapper, but it's worth trying.

ccache-writer could only be implemented once ccache is enabled for our builds. Haven't spent the time to figure out how to yet.

@ViliusSutkus89 ViliusSutkus89 added the enhancement New feature or request label Jun 24, 2024
@andiwand
Copy link
Member

I didn't find any examples on how to use ccache with conan. Potentially it is as easy as how you specified the compilers manually and add ccache in front. I think that is definitely worth trying as it provides a more low level cache which might even hit if significant parts of the software changed

@ViliusSutkus89
Copy link
Contributor Author

If we add ccache compiler the same way we're setting up CC/CXX for Autotools, we are never getting rid of those ugly block in profiles 😂

@andiwand
Copy link
Member

Yeah that might not be great but I don't see a way around this. I don't think conan has some kind of ccache support

ViliusSutkus89 added a commit to ViliusSutkus89/conan-odr-index that referenced this issue Jul 29, 2024
Once we figure out how to make it work with conan, we can add it back
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants