macOS CI: build from the dev clone's engines, never from scratch past the 3h runner limit (L1.8)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5accf492ba
commit
60d82d0c5e
10 files changed
+85
-2
No files matched your search
@@ -20,6 +20,16 @@ inside=()
|
||||
# Engines another clone on this host built; else built here.
|
||||
if [ -n "${ELY_SHARE:-}" ]; then
|
||||
for part in engines reference; do
|
||||
# Never mix this clone's own build with shared engines.
|
||||
if [ "$os" != windows ] && { [ -e "$part" ] || [ -L "$part" ]; }; then
|
||||
# A sentinel keeps a trailing newline in the target.
|
||||
target=$( (readlink "$part" || true) && printf x)
|
||||
target=${target%x}
|
||||
[ "$target" = "$ELY_SHARE/$part"$'\n' ] || {
|
||||
echo "ci.sh: $root/$part is not a link to $ELY_SHARE/$part; remove it" >&2
|
||||
exit 1
|
||||
}
|
||||
fi
|
||||
if [ ! -e "$part" ]; then
|
||||
case $os in
|
||||
windows) powershell -NoProfile -Command "New-Item -ItemType Junction -Path '$part' -Target '$(cygpath -w "$ELY_SHARE/$part")' | Out-Null" ;;
|
||||
|
||||
Reference in new issue
Block a user