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
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user