Skip to content

Commit 511d44e

Browse files
committed
* Use nproc to set NUM_PROCS
1 parent 2f79d0d commit 511d44e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/build_and_test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ jobs:
6060
with:
6161
go-version: ${{ matrix.go }}
6262
check-latest: true
63-
- run: make GO_VERSION=${{ steps.setup_go.outputs.go-version }} test
63+
- name: Get number of CPU cores
64+
run: echo "NUM_PROCS=$(nproc)" >> $GITHUB_ENV
65+
- run: make NUM_PROCS=$NUM_PROCS GO_VERSION=${{ steps.setup_go.outputs.go-version }} test
6466
- uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
6567
with:
6668
fail_ci_if_error: false # optional (default = false)

0 commit comments

Comments
 (0)