Skip to content

Commit 4534dd6

Browse files
committed
Auto merge of #11488 - ehuss:ci-dump-cpu, r=weihanglo
Display CPU info in CI This displays the CPU information on the CI runners in the logs. This can be helpful for diagnosing CI issues and to better understand the environment they are running under.
2 parents ead8cbd + a371b1a commit 4534dd6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

ci/dump-environment.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,12 @@ echo
1111
echo "disk usage:"
1212
df -h
1313
echo
14+
15+
echo "CPU info:"
16+
if [[ "${OSTYPE}" = "darwin"* ]]; then
17+
system_profiler SPHardwareDataType || true
18+
sysctl hw || true
19+
else
20+
cat /proc/cpuinfo || true
21+
cat /proc/meminfo || true
22+
fi

0 commit comments

Comments
 (0)