Repository navigation
Speed up macOS CI lanes #6490
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Speed up macOS CI lanes #6490
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,7 +6,7 @@ ROOT_DIR="$(cd "$(dirname "$0")/.." && pwd)" | |
| WORKFLOW_FILE="$ROOT_DIR/.github/workflows/nightly.yml" | ||
|
|
||
| if ! awk ' | ||
| /^ - name: Build universal nightly app \(Release\)/ { in_universal=1; next } | ||
| /^ - name: Build universal nightly app and Ghostty CLI helper \(Release\)/ { in_universal=1; next } | ||
| in_universal && /^ - name:/ { in_universal=0 } | ||
| in_universal && /-destination '\''generic\/platform=macOS'\''/ { saw_universal_destination=1 } | ||
| in_universal && /ARCHS="arm64 x86_64"/ { saw_universal_archs=1 } | ||
|
|
@@ -20,14 +20,16 @@ if ! awk ' | |
| fi | ||
|
|
||
| if ! awk ' | ||
| /^ - name: Build universal Ghostty CLI helper/ { in_helper=1; next } | ||
| /^ - name: Build universal nightly app and Ghostty CLI helper \(Release\)/ { in_helper=1; next } | ||
| in_helper && /^ - name:/ { in_helper=0 } | ||
| in_helper && /build-ghostty-cli-helper\.sh --universal/ { saw_build=1 } | ||
| in_helper && /helper missing arm64 slice/ { saw_arm64_assert=1 } | ||
| in_helper && /helper missing x86_64 slice/ { saw_x86_assert=1 } | ||
| END { exit !(saw_build && saw_arm64_assert && saw_x86_assert) } | ||
| in_helper && /wait "\$HELPER_PID"/ { saw_wait=1 } | ||
| in_helper && /cat "\$HELPER_LOG"/ { saw_log=1 } | ||
| END { exit !(saw_build && saw_arm64_assert && saw_x86_assert && saw_wait && saw_log) } | ||
| ' "$WORKFLOW_FILE"; then | ||
| echo "FAIL: nightly workflow must build and verify the real universal Ghostty helper" | ||
| echo "FAIL: nightly workflow must build and verify the real universal Ghostty helper alongside the app build" | ||
|
Comment on lines
+23
to
+32
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Assert helper failure is enforced, not just observed. This block verifies Proposed patch if ! awk '
/^ - name: Build universal nightly app and Ghostty CLI helper \(Release\)/ { in_helper=1; next }
in_helper && /^ - name:/ { in_helper=0 }
in_helper && /build-ghostty-cli-helper\.sh --universal/ { saw_build=1 }
in_helper && /helper missing arm64 slice/ { saw_arm64_assert=1 }
in_helper && /helper missing x86_64 slice/ { saw_x86_assert=1 }
in_helper && /wait "\$HELPER_PID"/ { saw_wait=1 }
in_helper && /cat "\$HELPER_LOG"/ { saw_log=1 }
- END { exit !(saw_build && saw_arm64_assert && saw_x86_assert && saw_wait && saw_log) }
+ in_helper && /if \[ "\$HELPER_STATUS" -ne 0 \]; then/ { saw_helper_fail_gate=1 }
+ in_helper && /exit "\$HELPER_STATUS"/ { saw_helper_fail_exit=1 }
+ END { exit !(saw_build && saw_arm64_assert && saw_x86_assert && saw_wait && saw_log && saw_helper_fail_gate && saw_helper_fail_exit) }
' "$WORKFLOW_FILE"; then🤖 Prompt for AI Agents |
||
| exit 1 | ||
| fi | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.