-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Use ccache in GHA pipelines #45701
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
Use ccache in GHA pipelines #45701
Conversation
c368923
to
a160eca
Compare
Hello @jonashaag! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2022-02-28 08:52:23 UTC |
2584771
to
55d8df1
Compare
shell: bash | ||
|
||
- name: Setup ccache | ||
uses: hendrikmuhs/ccache-action@2181be813387616fc2b8dca72d3ff8b912b25f73 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you reference a version instead of a git hash?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did this for security purposes but I'm happy to change it if you're not concerned about that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't a v1.x be stable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was worried more about security than stability. Tags can be force pushed with malicious code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we not trust this particular action author?
I understand the security concern, but since we also reference tags in other actions, to potentially pick up bug fixes/performance improvements), IMO that's a worthy tradeoff. Open to other core team opinion
@jonashaag can you merge main |
4c17529
to
5952ecf
Compare
ping @mroeschke |
Trying Sccache right now because it has support for Windows/Visual Studio compiler |
I can't figure out how to tell |
Awesome, this seems to work great. |
72621b4
to
92840f8
Compare
Awesome, this also works for Windows now. Not yet implemented for Azure pipelines though, so this only applies to the |
Looks pretty good! Have you observed pushing a commit a day later and seeing the ccache being rebuilt? |
I have observed that numerous times while developing this but we can also retrigger this specific version of the PR tomorrow and have a look. |
There is one important caveat with this PR that I forgot to mention, which is that it currently uses an unmerged version of |
can you rebase again (as merged the mamba change). |
- Refactor duplicated code from GHA workflows to the 'build-pandas' and 'setup' actions. - Use Mamba over Conda everywhere. - Add sccache using 'hendrikmuhs/ccache-action'. - General cleanup of GHA workflows.
I'm working on an extension of this that also uses Micromamba for env setup (where I recently implemented caching of entire Conda envs). It removes another 5 minutes from the builds. #46346 |
Saves around 5–10 minutes in each of the GHA builds.
Also cleans up some duplicated code.