From fdf1e8cc13d27c8dc46bcc582b713106379b3652 Mon Sep 17 00:00:00 2001 From: Tommy Nguyen <4123478+tido64@users.noreply.github.com> Date: Thu, 30 Nov 2023 13:27:57 +0100 Subject: [PATCH] ci: make `xcodebuild` logs more legible with `xcbeautify` (#1713) --- Brewfile | 1 + scripts/xcodebuild.sh | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Brewfile b/Brewfile index 09a703fb3..30fa95b8f 100644 --- a/Brewfile +++ b/Brewfile @@ -4,5 +4,6 @@ brew 'ktlint' brew 'n' brew 'swiftformat' brew 'swiftlint' +brew 'xcbeautify' brew 'yarn' cask 'temurin11' diff --git a/scripts/xcodebuild.sh b/scripts/xcodebuild.sh index 9406d0c50..afb9b53c9 100755 --- a/scripts/xcodebuild.sh +++ b/scripts/xcodebuild.sh @@ -57,8 +57,11 @@ if [[ "$CCACHE_DISABLE" != "1" ]]; then ccache --zero-stats 1> /dev/null fi +if ! command -v xcbeautify 1> /dev/null; then + brew install xcbeautify +fi -eval "$build_cmd" +eval "$build_cmd" | xcbeautify if [[ "$CCACHE_DISABLE" != "1" ]]; then ccache --show-stats --verbose