Skip to content

Commit 5a213de

Browse files
committed
ci(release): macos stage-2 binary selection by mtime (new fingerprint dir)
Stage 2's fingerprint includes the deployment target (the bootstrap's does not), so its output lands in a different fingerprint directory; 'find | head -1' picked stage 1's dynamic binary and the static assertion correctly rejected it. Select the newest binary instead.
1 parent 2709fe6 commit 5a213de

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,9 +341,13 @@ jobs:
341341
"$STAGE1" --version
342342
343343
# Stage 2: this release's mcpp rebuilds itself — flags.cppm's
344-
# native staticStdlib link produces the static minos-11 binary.
344+
# native staticStdlib link produces the static minos-14 binary.
345+
# NOTE: stage 2 lands in a NEW fingerprint directory (its
346+
# fingerprint includes the deployment target; the bootstrap's
347+
# did not) — pick the most recently modified binary, not the
348+
# first find hit.
345349
"$STAGE1" build --no-cache
346-
MCPP_BIN=$(find target -path "*/bin/mcpp" | head -1)
350+
MCPP_BIN=$(ls -t $(find target -path "*/bin/mcpp" -type f) | head -1)
347351
MCPP_BIN=$(cd "$(dirname "$MCPP_BIN")" && pwd)/$(basename "$MCPP_BIN")
348352
test -x "$MCPP_BIN"
349353
file "$MCPP_BIN"

0 commit comments

Comments
 (0)