Merge pull request #3409 from dokku/faster-build

Build golang binaries with higher concurrency
This commit is contained in:
Jose Diaz-Gonzalez authored and GitHub committed 2019-01-20 18:58:12 -05:00
commit 1757bc0207
3 files changed
+5 -4

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@ build-in-docker: clean
-v $$PWD/../..:$(GO_REPO_ROOT) \ -v $$PWD/../..:$(GO_REPO_ROOT) \
-w $(GO_REPO_ROOT)/plugins/config \ -w $(GO_REPO_ROOT)/plugins/config \
$(BUILD_IMAGE) \ $(BUILD_IMAGE) \
bash -c "GO_ARGS='$(GO_ARGS)' make build" || exit $$? bash -c "GO_ARGS='$(GO_ARGS)' make -j4 build" || exit $$?
build: commands subcommands build: commands subcommands
+3 -2
View File
@@ -9,9 +9,10 @@ build-in-docker: clean
-v $$PWD/../..:$(GO_REPO_ROOT) \ -v $$PWD/../..:$(GO_REPO_ROOT) \
-w $(GO_REPO_ROOT)/plugins/network \ -w $(GO_REPO_ROOT)/plugins/network \
$(BUILD_IMAGE) \ $(BUILD_IMAGE) \
bash -c "GO_ARGS='$(GO_ARGS)' make build" || exit $$? bash -c "GO_ARGS='$(GO_ARGS)' make -j4 build" || exit $$?
build: commands subcommands triggers triggers-copy build: commands subcommands triggers
$(MAKE) triggers-copy
commands: **/**/commands.go commands: **/**/commands.go
go build $(GO_ARGS) -o commands src/commands/commands.go go build $(GO_ARGS) -o commands src/commands/commands.go
+1 -1
View File
@@ -9,7 +9,7 @@ build-in-docker: clean
-v $$PWD/../..:$(GO_REPO_ROOT) \ -v $$PWD/../..:$(GO_REPO_ROOT) \
-w $(GO_REPO_ROOT)/plugins/repo \ -w $(GO_REPO_ROOT)/plugins/repo \
$(BUILD_IMAGE) \ $(BUILD_IMAGE) \
bash -c "GO_ARGS='$(GO_ARGS)' make build" || exit $$? bash -c "GO_ARGS='$(GO_ARGS)' make -j4 build" || exit $$?
build: commands subcommands build: commands subcommands