Skip to content

Improve libgit2 build reliability#97

Open
hbmartin wants to merge 1 commit into
gitx:masterfrom
hbmartin:codex/libgit2-build-reliability
Open

Improve libgit2 build reliability#97
hbmartin wants to merge 1 commit into
gitx:masterfrom
hbmartin:codex/libgit2-build-reliability

Conversation

@hbmartin

Copy link
Copy Markdown

Summary

  • declare the libgit2 build script inputs and archive output so Xcode can skip unchanged rebuilds
  • skip the expensive libgit2 rebuild when no source file is newer than the archive
  • use POSIX-compatible shell syntax and restrict the current build configurations to the supported architecture

Why

GitX rebuilds libgit2 on every application and test invocation, substantially increasing local and CI turnaround time. The build phase did not declare its dependencies, and its script had no freshness check.

Validation

  • sh -n script/update_libgit2
  • GitX Debug application build
  • GitX unit and repository-integration suite: 34 passed, 0 failed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant