Skip to content

Commit eed8f37

Browse files
committed
fix nproc on macos
1 parent acabcd4 commit eed8f37

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ jobs:
2020

2121
steps:
2222
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
23+
- name: Determine number of available hardware threads
24+
run: echo "NUM_THREADS=$(nproc || sysctl -n hw.ncpu)" >> $GITHUB_ENV
2325
- name: Test Exercises
2426
env:
2527
CC: ${{ matrix.compiler }}
26-
run: make -j $(nproc)
28+
run: make -j ${{ env.NUM_THREADS }}

0 commit comments

Comments
 (0)