From a310a5cba9bd3f6a6642d152e2c0603dac3f1a2b Mon Sep 17 00:00:00 2001 From: "A. Renz" Date: Thu, 11 Dec 2025 20:16:38 +0100 Subject: [PATCH] ci: limit parallelism to 8 threads (GOMAXPROCS + max-parallel) --- .gitea/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 5a5fca7..8476dee 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -30,6 +30,8 @@ jobs: run: go mod download - name: Run tests with race detection + env: + GOMAXPROCS: 8 run: go test -race -coverprofile=coverage.out -covermode=atomic ./... - name: Generate coverage report @@ -69,6 +71,7 @@ jobs: container: image: golang:1.24-bookworm strategy: + max-parallel: 8 matrix: binary: [server, monitor] goos: [linux, darwin] @@ -87,6 +90,7 @@ jobs: GOOS: ${{ matrix.goos }} GOARCH: ${{ matrix.goarch }} CGO_ENABLED: 0 + GOMAXPROCS: 8 run: | go build -ldflags="-s -w -X main.Version=${GITHUB_REF_NAME}" \ -o dist/hmac-file-${{ matrix.binary }}-${{ matrix.goos }}-${{ matrix.goarch }} \