From d76ccaa5316b62b51a2fabca5d7e11290987240a Mon Sep 17 00:00:00 2001 From: Lawrence Chen <54008264+lawrencecchen@users.noreply.github.com> Date: Wed, 28 Jan 2026 04:51:44 -0800 Subject: [PATCH] Build GhosttyKit.xcframework in CI --- .github/workflows/ci.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 706332bd..bf3a2b21 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,6 +34,22 @@ jobs: xcodebuild -version xcrun --sdk macosx --show-sdk-path + - name: Build GhosttyKit.xcframework + run: | + set -euo pipefail + if ! command -v zig >/dev/null 2>&1; then + if command -v brew >/dev/null 2>&1; then + brew install zig + else + echo "zig is required to build GhosttyKit.xcframework. Install zig and retry." >&2 + exit 1 + fi + fi + (cd ghostty && zig build -Demit-xcframework=true -Demit-macos-app=false -Dxcframework-target=native) + rm -rf GhosttyKit.xcframework + cp -R ghostty/macos/GhosttyKit.xcframework GhosttyKit.xcframework + test -d GhosttyKit.xcframework + - name: Run UI tests run: | xcodebuild \