Raise ulimit on MacOS for tests

This commit is contained in:
Whytro 2023-03-22 22:16:50 +09:00
parent 4ecbf0edca
commit a4ae955ce2

View File

@ -395,7 +395,7 @@ jobs:
if [[ "${RUNNER_OS}" == "Linux" ]]; then
echo "JOBS=$((`nproc` + 1))" >> $GITHUB_ENV
elif [[ "${RUNNER_OS}" == "macOS" ]]; then
echo "JOBS=$((`sysctl -n hw.ncpu` + 1))" >> $GITHUB_ENV
echo "JOBS=$((`ulimit -n 1024 && sysctl -n hw.ncpu` + 1))" >> $GITHUB_ENV
fi
- name: Install dev dependencies