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
Add sccache to the Windows job #6231
Conversation
Also fix debug symbols on googletest, so that it doesn't try to create a separate pdb.
This needs a small fix that I'm going to quickly do, because it has a side effect I did not expect with the submodule cache. |
Beyond the fix I have to do, this is the result of the first build (50m 50s on the build step https://dev.azure.com/trailofbits/osquery/_build/results?buildId=2272&view=logs&j=acefc29f-3256-5fff-5f4b-77e5e3dc5221&t=babf8ed4-640d-5f25-66fd-b651c348dcc1) |
Still doesn't work... context:
It's not uploading files inside that folder, which means that the cache for the submodules will be empty for the next run. |
Finally found the fix, now it should be good to go. |
sccache needs its cache to be uploaded as normal files, not with a tar, otherwise the cache when extracted will contain extraneous files and folders (PaxHeader). The Files mode though by default ignores the .git folder, so we have to use the .artifactignore file to unignore it, and we have to copy in the cached path for the cache task to see it.
Awesome work! |
Also fix debug symbols on googletest,
so that it doesn't try to create a separate pdb.
This is a tool which is similar to ccache, but it will be used for Windows.
After the first round of cache generation, the build time should be halved to around 20mins.
We have to use Ninja instead of msbuild to build because the latter is not properly supported, moreover we are using a custom build of sccache since it has a fix for the support of a MSVC debug flag that has yet to be upstreamed.