Skip to content

Commit e1ebd22

Browse files
committed
ci: find newest mcpp binary (avoids stale cached binary)
1 parent 76593b0 commit e1ebd22

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ jobs:
101101
# Point the e2e runner at the freshly-built binary, not the
102102
# bootstrap one. Tests cd into mktemp -d, so $MCPP must be
103103
# absolute or the relative path breaks under the temp cwd.
104-
MCPP=$(realpath "$(find target -type f -name mcpp | head -1)")
104+
MCPP=$(realpath "$(find target -type f -name mcpp -printf '%T@ %p\n' | sort -rn | head -1 | cut -d' ' -f2)")
105105
test -x "$MCPP"
106106
export MCPP
107107
# Tests that set MCPP_HOME to a fresh tmpdir need an xlings
@@ -117,6 +117,6 @@ jobs:
117117
118118
- name: Self-host smoke (freshly-built mcpp builds itself again)
119119
run: |
120-
MCPP=$(realpath "$(find target -type f -name mcpp | head -1)")
120+
MCPP=$(realpath "$(find target -type f -name mcpp -printf '%T@ %p\n' | sort -rn | head -1 | cut -d' ' -f2)")
121121
"$MCPP" build
122122
"$MCPP" test

0 commit comments

Comments
 (0)