Pick newest CLI binary in CI
This commit is contained in:
parent
f41a831778
commit
9bd22d5d98
1 changed files with 6 additions and 1 deletions
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue