Skip to content

Commit df3c882

Browse files
authored
Fix ncpus environment variable ci (#636)
1 parent 130dd30 commit df3c882

File tree

1 file changed

+5
-1
lines changed
  • .github/actions/Miscellaneous/Select_Default_Build_Type

1 file changed

+5
-1
lines changed

.github/actions/Miscellaneous/Select_Default_Build_Type/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ runs:
1010
run: |
1111
echo "BUILD_TYPE=Release" >> $GITHUB_ENV
1212
echo "CODE_COVERAGE=0" >> $GITHUB_ENV
13-
echo "ncpus=$(sysctl -n hw.ncpu)" >> $GITHUB_ENV
13+
if [[ "${{ matrix.os }}" != "macos"* ]]; then
14+
echo "ncpus=$(nproc --all)" >> $GITHUB_ENV
15+
else
16+
echo "ncpus=$(sysctl -n hw.ncpu)" >> $GITHUB_ENV
17+
fi
1418
1519
- name: Select default build type on Windows
1620
if: runner.os == 'Windows'

0 commit comments

Comments
 (0)