Add debug info for macOS CI actions

This commit is contained in:
Eric Huss 2024-01-10 10:27:31 -08:00
parent e927184629
commit f7e8739eac

View File

@ -1,6 +1,8 @@
#!/bin/bash
# This script dumps information about the build environment to stdout.
source "$(cd "$(dirname "$0")" && pwd)/../shared.sh"
set -euo pipefail
IFS=$'\n\t'
@ -17,3 +19,17 @@ set +o pipefail
du . | sort -nr | head -n100
set -o pipefail
echo
if isMacOS
then
# Debugging information that might be helpful for diagnosing macOS
# performance issues.
# SIP
csrutil status
# Gatekeeper
spctl --status
# Authorization policy
DevToolsSecurity -status
# Spotlight status
mdutil -avs
fi