Skip to content

AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.

fix(ci): use TCP for Intel macOS notarization tickets (#696)

tianma-ifdae7f1474194
diff --git a/.github/workflows/desktop-build.yml b/.github/workflows/desktop-build.yml
index 5182efff..f83c1150 100644
--- a/.github/workflows/desktop-build.yml
+++ b/.github/workflows/desktop-build.yml
@@ -325,6 +325,15 @@ jobs:
echo "APPLE_API_KEY_ID=$APPLE_API_KEY_ID" >> "$GITHUB_ENV"
echo "APPLE_API_ISSUER=$APPLE_API_ISSUER" >> "$GITHUB_ENV"
+ # GitHub's Intel runner drops Apple's HTTP/3 ticket requests. Keep the
+ # notarization/stapling checks and use HTTPS over TCP on this ephemeral VM.
+ # https://github.com/actions/runner-images/issues/14924
+ - name: Use TCP for Apple notarization tickets on Intel runners
+ if: matrix.arch == 'x64' && runner.environment == 'github-hosted'
+ run: |
+ echo "block return out quick proto udp from any to any port 443" | sudo pfctl -f -
+ sudo pfctl -E
+
- name: Package desktop installer
env:
EDGE_EVER_DESKTOP_ARCH: ${{ matrix.arch }}
diff --git a/scripts/desktop-build-workflow.test.mjs b/scripts/desktop-build-workflow.test.mjs
index 431a2149..16e9a9dd 100644
--- a/scripts/desktop-build-workflow.test.mjs
+++ b/scripts/desktop-build-workflow.test.mjs
@@ -103,6 +103,16 @@ describe("desktop release workflow", () => {
expect(step("Verify packaged macOS private protocol file flows")).toContain("verify:desktop-protocol-e2e");
});
+ test("limits the Apple HTTP/3 workaround to hosted Intel packaging", () => {
+ const workaround = step("Use TCP for Apple notarization tickets on Intel runners");
+ expect(workaround).toContain("if: matrix.arch == 'x64' && runner.environment == 'github-hosted'");
+ expect(workaround).toContain("block return out quick proto udp from any to any port 443");
+ expect(workaround).toContain("sudo pfctl -f -");
+ expect(workaround).toContain("sudo pfctl -E");
+ expect(workflow.indexOf(workaround)).toBeLessThan(workflow.indexOf(" - name: Package desktop installer\n"));
+ expect(workflow).toContain("Verify packaged macOS cross-version startup");
+ });
+
test("reports timings after builds without instrumenting native build steps", () => {
expect(workflow).toContain("name: Report desktop build timings");
expect(workflow).toContain("--platform desktop");