From 9634f3a5621fdb109be3afb5d54d149b77d18353 Mon Sep 17 00:00:00 2001 From: "A. Renz" Date: Thu, 11 Dec 2025 20:16:30 +0100 Subject: [PATCH] ci: limit parallelism to 8 threads (GOMAXPROCS + max-parallel) --- .gitea/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 51df2bc..8407b20 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 @@ -55,6 +57,8 @@ jobs: run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.62.2 - name: Run golangci-lint + env: + GOMAXPROCS: 8 run: golangci-lint run --timeout=5m ./... build: @@ -64,6 +68,7 @@ jobs: container: image: golang:1.24-bookworm strategy: + max-parallel: 8 matrix: goos: [linux, darwin] goarch: [amd64, arm64] @@ -81,6 +86,7 @@ jobs: GOOS: ${{ matrix.goos }} GOARCH: ${{ matrix.goarch }} CGO_ENABLED: 0 + GOMAXPROCS: 8 run: | BINARY_NAME=dbbackup go build -ldflags="-s -w" -o dist/${BINARY_NAME}-${{ matrix.goos }}-${{ matrix.goarch }} .