ci: limit parallelism to 8 threads (GOMAXPROCS + max-parallel)
Some checks failed
CI/CD / Test (push) Has been cancelled
CI/CD / Lint (push) Has been cancelled
CI/CD / Build monitor-darwin-amd64 (push) Has been cancelled
CI/CD / Build monitor-linux-amd64 (push) Has been cancelled
CI/CD / Build monitor-darwin-arm64 (push) Has been cancelled
CI/CD / Build monitor-linux-arm64 (push) Has been cancelled
CI/CD / Build server-darwin-amd64 (push) Has been cancelled
CI/CD / Build server-linux-amd64 (push) Has been cancelled
CI/CD / Build server-darwin-arm64 (push) Has been cancelled
CI/CD / Build server-linux-arm64 (push) Has been cancelled
CI/CD / Generate SBOM (push) Has been cancelled
CI/CD / Build & Push Docker Image (push) Has been cancelled
CI/CD / Release (push) Has been cancelled
Some checks failed
CI/CD / Test (push) Has been cancelled
CI/CD / Lint (push) Has been cancelled
CI/CD / Build monitor-darwin-amd64 (push) Has been cancelled
CI/CD / Build monitor-linux-amd64 (push) Has been cancelled
CI/CD / Build monitor-darwin-arm64 (push) Has been cancelled
CI/CD / Build monitor-linux-arm64 (push) Has been cancelled
CI/CD / Build server-darwin-amd64 (push) Has been cancelled
CI/CD / Build server-linux-amd64 (push) Has been cancelled
CI/CD / Build server-darwin-arm64 (push) Has been cancelled
CI/CD / Build server-linux-arm64 (push) Has been cancelled
CI/CD / Generate SBOM (push) Has been cancelled
CI/CD / Build & Push Docker Image (push) Has been cancelled
CI/CD / Release (push) Has been cancelled
This commit is contained in:
@@ -30,6 +30,8 @@ jobs:
|
|||||||
run: go mod download
|
run: go mod download
|
||||||
|
|
||||||
- name: Run tests with race detection
|
- name: Run tests with race detection
|
||||||
|
env:
|
||||||
|
GOMAXPROCS: 8
|
||||||
run: go test -race -coverprofile=coverage.out -covermode=atomic ./...
|
run: go test -race -coverprofile=coverage.out -covermode=atomic ./...
|
||||||
|
|
||||||
- name: Generate coverage report
|
- name: Generate coverage report
|
||||||
@@ -69,6 +71,7 @@ jobs:
|
|||||||
container:
|
container:
|
||||||
image: golang:1.24-bookworm
|
image: golang:1.24-bookworm
|
||||||
strategy:
|
strategy:
|
||||||
|
max-parallel: 8
|
||||||
matrix:
|
matrix:
|
||||||
binary: [server, monitor]
|
binary: [server, monitor]
|
||||||
goos: [linux, darwin]
|
goos: [linux, darwin]
|
||||||
@@ -87,6 +90,7 @@ jobs:
|
|||||||
GOOS: ${{ matrix.goos }}
|
GOOS: ${{ matrix.goos }}
|
||||||
GOARCH: ${{ matrix.goarch }}
|
GOARCH: ${{ matrix.goarch }}
|
||||||
CGO_ENABLED: 0
|
CGO_ENABLED: 0
|
||||||
|
GOMAXPROCS: 8
|
||||||
run: |
|
run: |
|
||||||
go build -ldflags="-s -w -X main.Version=${GITHUB_REF_NAME}" \
|
go build -ldflags="-s -w -X main.Version=${GITHUB_REF_NAME}" \
|
||||||
-o dist/hmac-file-${{ matrix.binary }}-${{ matrix.goos }}-${{ matrix.goarch }} \
|
-o dist/hmac-file-${{ matrix.binary }}-${{ matrix.goos }}-${{ matrix.goarch }} \
|
||||||
|
|||||||
Reference in New Issue
Block a user