diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bbaee7cb..22933f48 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -155,7 +155,12 @@ jobs: run: | set -euo pipefail - CLI_BIN="$(find "$HOME/Library/Developer/Xcode/DerivedData" -path "*/Build/Products/Debug/cmux" -print -quit)" + CLI_BIN="$( + find "$HOME/Library/Developer/Xcode/DerivedData" -path "*/Build/Products/Debug/cmux" -exec stat -f '%m %N' {} \; \ + | sort -nr \ + | head -1 \ + | cut -d' ' -f2- + )" if [ -z "${CLI_BIN:-}" ] || [ ! -x "$CLI_BIN" ]; then echo "cmux CLI binary not found in DerivedData" >&2 exit 1