reduce intermittent Windows GitHub Actions CI build failures (#4495)

This commit is contained in:
tersec 2023-01-12 14:47:33 +00:00 committed by GitHub
parent 6bfc766629
commit 3b60b225b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -121,7 +121,10 @@ jobs:
ncpu=$(sysctl -n hw.ncpu)
;;
'Windows')
ncpu=${NUMBER_OF_PROCESSORS}
# otherwise, intermittent CI build failures
# e.g., cc1.exe: out of memory allocating 215528 bytes
# underflow corrected later
ncpu=$((${NUMBER_OF_PROCESSORS} - 1))
make_cmd="mingw32-make"
;;
esac