← 输入框|github.com|刷新
Skip to content

What are the needed dependencies? #2007

Open

Description

@Stefanuk12

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?

Activity

  1. sin-ack commented on Nov 21, 2024

    @sin-ack

    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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions