Skip to content

Commit 44f8213

Browse files
committed
ci: provide more information about OS
Subtle changes in the host OS can have impacts in the CI system that may be hard to debug. We previously showed the results of `uname` which can be difficult to interpret. Provide more information where available.
1 parent 6f77835 commit 44f8213

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

ci/build.sh

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,20 @@ indent() { sed "s/^/ /"; }
1616
echo "Source directory: ${SOURCE_DIR}"
1717
echo "Build directory: ${BUILD_DIR}"
1818
echo ""
19-
echo "Operating system version:"
19+
20+
if [ "$(uname -s)" = "Darwin" ]; then
21+
echo "macOS version:"
22+
sw_vers | indent
23+
fi
24+
25+
if [ -f "/etc/debian_version" ]; then
26+
echo "Debian version:"
27+
lsb_release -a | indent
28+
fi
29+
30+
echo "Kernel version:"
2031
uname -a 2>&1 | indent
32+
2133
echo "CMake version:"
2234
cmake --version 2>&1 | indent
2335
echo "Compiler version:"

0 commit comments

Comments
 (0)