From 0a4fb4594a6e0f09cd63d6537b037b925af9433b Mon Sep 17 00:00:00 2001 From: James Houlahan Date: Fri, 11 Dec 2020 11:27:26 +0100 Subject: [PATCH] ci: limit GOMAXPROCS to half the number of vCPUs --- .gitlab-ci.yml | 2 +- Makefile | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f809e595..4a29b7b9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -44,7 +44,7 @@ lint: only: - branches script: - - make lint + - env GOMAXPROCS=$(( ${CI_TAG_CPU} / 2 )) make lint tags: - medium diff --git a/Makefile b/Makefile index a9997d18..57dea464 100644 --- a/Makefile +++ b/Makefile @@ -231,6 +231,7 @@ lint-changelog: lint-golang: which golangci-lint || $(MAKE) install-linter + $(info linting with GOMAXPROCS=${GOMAXPROCS}) golangci-lint run ./... updates: install-go-mod-outdated