show number of cores and total physical memory on Windows GitHub Actions (#4504)

This commit is contained in:
tersec 2023-01-13 21:42:08 +00:00 committed by GitHub
parent 2324136552
commit d2e9cdf1a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -123,6 +123,8 @@ jobs:
'Windows')
ncpu=${NUMBER_OF_PROCESSORS}
make_cmd="mingw32-make"
echo "Number of cores: ${NUMBER_OF_PROCESSORS}"
echo "Physical memory: $(wmic ComputerSystem get TotalPhysicalMemory)"
;;
esac
[[ -z "$ncpu" || $ncpu -le 0 ]] && ncpu=1