Skip to content

Commit ddaccbc

Browse files
zeripathtechknowlogick
authored andcommitted
Build go-git variants for windows (go-gitea#15482)
It appears that there are significant performance problems with the pure git backend on windows. Therefore until we can sort this out - provide go-git backend builds. Signed-off-by: Andrew Thornton <[email protected]> Co-authored-by: techknowlogick <[email protected]>
1 parent 2224845 commit ddaccbc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,9 @@ release-windows: | $(DIST_DIRS)
613613
$(GO) install src.techknowlogick.com/xgo@latest; \
614614
fi
615615
CGO_CFLAGS="$(CGO_CFLAGS)" xgo -go $(XGO_VERSION) -buildmode exe -dest $(DIST)/binaries -tags 'netgo osusergo $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'windows/*' -out gitea-$(VERSION) .
616+
ifeq (,$(findstring gogit,$(TAGS)))
617+
CGO_CFLAGS="$(CGO_CFLAGS)" xgo -go $(XGO_VERSION) -buildmode exe -dest $(DIST)/binaries -tags 'netgo osusergo gogit $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'windows/*' -out gitea-$(VERSION)-gogit .
618+
endif
616619
ifeq ($(CI),drone)
617620
cp /build/* $(DIST)/binaries
618621
endif

0 commit comments

Comments
 (0)