From e7fb6007d38e476c80c75b13200638fd529d50fb Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 20 Jan 2019 18:12:08 -0500 Subject: [PATCH] feat: build golang binaries with higher concurrency This should allow us to shave off a few minutes of build time, both locally and on CI --- plugins/config/Makefile | 2 +- plugins/network/Makefile | 5 +++-- plugins/repo/Makefile | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/plugins/config/Makefile b/plugins/config/Makefile index dcf7c0cad..ccb9e826d 100644 --- a/plugins/config/Makefile +++ b/plugins/config/Makefile @@ -9,7 +9,7 @@ build-in-docker: clean -v $$PWD/../..:$(GO_REPO_ROOT) \ -w $(GO_REPO_ROOT)/plugins/config \ $(BUILD_IMAGE) \ - bash -c "GO_ARGS='$(GO_ARGS)' make build" || exit $$? + bash -c "GO_ARGS='$(GO_ARGS)' make -j4 build" || exit $$? build: commands subcommands diff --git a/plugins/network/Makefile b/plugins/network/Makefile index c5690fb5d..36f189b92 100644 --- a/plugins/network/Makefile +++ b/plugins/network/Makefile @@ -9,9 +9,10 @@ build-in-docker: clean -v $$PWD/../..:$(GO_REPO_ROOT) \ -w $(GO_REPO_ROOT)/plugins/network \ $(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 go build $(GO_ARGS) -o commands src/commands/commands.go diff --git a/plugins/repo/Makefile b/plugins/repo/Makefile index b4c949836..4c9c8bcae 100644 --- a/plugins/repo/Makefile +++ b/plugins/repo/Makefile @@ -9,7 +9,7 @@ build-in-docker: clean -v $$PWD/../..:$(GO_REPO_ROOT) \ -w $(GO_REPO_ROOT)/plugins/repo \ $(BUILD_IMAGE) \ - bash -c "GO_ARGS='$(GO_ARGS)' make build" || exit $$? + bash -c "GO_ARGS='$(GO_ARGS)' make -j4 build" || exit $$? build: commands subcommands