Pick newest CLI binary in CI

This commit is contained in:
tiffanysun1 2026-03-12 02:34:04 -07:00
parent f41a831778
commit 9bd22d5d98

View file

@ -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