CI build: print number of VM CPUs

This commit is contained in:
Erik Arvstedt 2020-02-25 22:51:57 +01:00
parent a985abcd21
commit 31ad56950f
No known key found for this signature in database
GPG Key ID: 33312B944DD97846

View File

@ -88,7 +88,8 @@ exprForCI() {
# Round down to nearest multiple of 50 MiB for improved test build caching
((memAvailableMiB = memAvailableKiB / (1024 * 50) * 50))
((memAvailableMiB < memoryMiB)) && memoryMiB=$memAvailableMiB
>&2 echo "Host memory: total $((memTotalKiB / 1024)) MiB, available $memAvailableMiB MiB, VM $memoryMiB MiB"
>&2 echo "VM stats: CPUs: $numCPUs, memory: $memoryMiB MiB"
>&2 echo "Host memory total: $((memTotalKiB / 1024)) MiB, available: $memAvailableMiB MiB"
vmTestNixExpr
}