You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use nodegit on GitHub Actions (ubuntu-latest), but it consistently adds 5 minutes to the workflow because it compiles libgit2 each time. Other than caching, how can I speed up the compile time?
I've tried installing libgit2-dev but it still needs to compile. What dependency can I install on apt to make it so that it doesn't need to compile git2 again?
Besides, libgit2 is rather quick to compile; Nodegit includes its own binding code in C++, which is the majority of the compilation time. So caching is the only possible way to avoid a recompile unless Nodegit finds an existing artifact to download (I think this is available on released versions, but 0.27.0 is broken for me so I can't really check).
Activity
sin-ack commentedon Nov 21, 2024
libgit2 will be compiled regardless of what your system contains because it's vendored: https://github.com/nodegit/nodegit/tree/master/vendor
Besides, libgit2 is rather quick to compile; Nodegit includes its own binding code in C++, which is the majority of the compilation time. So caching is the only possible way to avoid a recompile unless Nodegit finds an existing artifact to download (I think this is available on released versions, but 0.27.0 is broken for me so I can't really check).