Skip to content

Commit ee988da

Browse files
authored
Merge pull request #20 from sidequery/nicosuave/fix-ci-runners
Re-apply CI fixes for GitHub-hosted runners
2 parents 4e94f27 + b73f023 commit ee988da

12 files changed

Lines changed: 172 additions & 377 deletions

File tree

.github/workflows/test.yml

Lines changed: 113 additions & 327 deletions
Large diffs are not rendered by default.

macos/Assets.xcassets/Ghostty.appiconset/Contents.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@
5959
"size": "512x512",
6060
"scale": "2x",
6161
"filename": "icon_512x512@2x.png"
62+
},
63+
{
64+
"idiom": "universal",
65+
"platform": "ios",
66+
"size": "1024x1024",
67+
"filename": "icon_512x512@2x.png"
6268
}
6369
],
6470
"info": {

macos/Ghostty.xcodeproj/project.pbxproj

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,17 @@
144144
"Features/Custom App Icon/Extensions/Notification+AppIcon.swift",
145145
"Features/Custom App Icon/Extensions/UserDefaults+AppIcon.swift",
146146
"Features/Global Keybinds/GlobalEventTap.swift",
147+
Features/GitDiff/DiffModels.swift,
148+
Features/GitDiff/DiffParser.swift,
149+
Features/GitDiff/DiffReviewDraft.swift,
150+
Features/GitDiff/DiffReviewDraftStore.swift,
151+
Features/GitDiff/DiffSyntaxHighlighter.swift,
152+
Features/GitDiff/GitDiffBadges.swift,
153+
Features/GitDiff/GitDiffMainView.swift,
154+
Features/GitDiff/GitDiffSidebarState.swift,
155+
Features/GitDiff/GitDiffSidebarView.swift,
156+
Features/GitDiff/GitDiffStore.swift,
157+
Features/GitDiff/GitDiffTerminalViewModel.swift,
147158
Features/QuickTerminal/QuickTerminal.xib,
148159
Features/QuickTerminal/QuickTerminalController.swift,
149160
Features/QuickTerminal/QuickTerminalPosition.swift,
@@ -165,6 +176,7 @@
165176
Features/Splits/SplitView.Divider.swift,
166177
Features/Splits/SplitView.swift,
167178
Features/Splits/TerminalSplitTreeView.swift,
179+
Features/Terminal/AgentStatus/TerminalAgentHooks.swift,
168180
Features/Terminal/BaseTerminalController.swift,
169181
Features/Terminal/ErrorView.swift,
170182
Features/Terminal/TerminalController.swift,
@@ -204,8 +216,10 @@
204216
Features/Worktrunk/StatusRing/StatusRingTooltipOverlay.swift,
205217
Features/Worktrunk/StatusRing/StatusRingTooltipState.swift,
206218
Features/Worktrunk/StatusRing/StatusRingView.swift,
219+
Features/Worktrunk/SidebarListScrollPreserver.swift,
207220
Features/Worktrunk/WorktrunkClient.swift,
208221
Features/Worktrunk/WorktrunkInstaller.swift,
222+
Features/Worktrunk/WorktrunkOpenTabsModel.swift,
209223
Features/Worktrunk/WorktrunkPreferences.swift,
210224
Features/Worktrunk/WorktrunkSettingsView.swift,
211225
Features/Worktrunk/WorktrunkSidebarView.swift,

macos/Sources/Features/GitDiff/GitDiffSidebarView.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ struct GitDiffSidebarView: View {
210210
}
211211
}
212212

213+
// swiftlint:disable:next large_tuple
213214
private var diffSummary: (files: Int, additions: Int, deletions: Int, unresolved: Int)? {
214215
guard let doc = state.document else { return nil }
215216
let adds = doc.files.reduce(0) { $0 + $1.additions }

macos/Sources/Features/GitDiff/GitDiffStore.swift

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -295,14 +295,13 @@ final class GitDiffStore {
295295
}
296296
}
297297

298-
for path in ["/opt/homebrew/bin/git", "/usr/local/bin/git", "/usr/bin/git"] {
299-
if FileManager.default.isExecutableFile(atPath: path) {
300-
return GitInvocation(
301-
executableURL: URL(fileURLWithPath: path),
302-
arguments: args,
303-
environment: env
304-
)
305-
}
298+
for path in ["/opt/homebrew/bin/git", "/usr/local/bin/git", "/usr/bin/git"]
299+
where FileManager.default.isExecutableFile(atPath: path) {
300+
return GitInvocation(
301+
executableURL: URL(fileURLWithPath: path),
302+
arguments: args,
303+
environment: env
304+
)
306305
}
307306

308307
let envURL = URL(fileURLWithPath: "/usr/bin/env")

macos/Sources/Features/Terminal/TerminalController.swift

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1685,14 +1685,13 @@ class TerminalController: BaseTerminalController, TabGroupCloseCoordinator.Contr
16851685
let appDelegate = NSApp.delegate as? AppDelegate else { return }
16861686

16871687
let store = appDelegate.worktrunkStore
1688-
for repo in store.repositories {
1689-
if store.worktrees(for: repo.id).contains(where: { $0.path == rootPath }) {
1690-
let newSelection = SidebarSelection.worktree(repoID: repo.id, path: rootPath)
1691-
guard worktrunkSidebarState.selection != newSelection else { return }
1692-
applySyncedWorktrunkSidebarSelection(newSelection)
1693-
syncWorktrunkSidebarSelectionToTabGroup(newSelection)
1694-
return
1695-
}
1688+
for repo in store.repositories
1689+
where store.worktrees(for: repo.id).contains(where: { $0.path == rootPath }) {
1690+
let newSelection = SidebarSelection.worktree(repoID: repo.id, path: rootPath)
1691+
guard worktrunkSidebarState.selection != newSelection else { return }
1692+
applySyncedWorktrunkSidebarSelection(newSelection)
1693+
syncWorktrunkSidebarSelectionToTabGroup(newSelection)
1694+
return
16961695
}
16971696
}
16981697

macos/Sources/Features/Update/UpdateController.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,8 @@ enum InstallChannel {
158158
"/opt/homebrew/Caskroom/ghostree",
159159
"/usr/local/Caskroom/ghostree",
160160
]
161-
for path in caskroomPaths {
162-
if FileManager.default.fileExists(atPath: path) {
163-
return .homebrew
164-
}
161+
for path in caskroomPaths where FileManager.default.fileExists(atPath: path) {
162+
return .homebrew
165163
}
166164

167165
return .manual

macos/Sources/Features/Worktrunk/GitHub/GHClient.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -239,10 +239,9 @@ struct GHClient {
239239
}
240240

241241
// Find gh executable
242-
for path in ["/opt/homebrew/bin/gh", "/usr/local/bin/gh", "/usr/bin/gh"] {
243-
if FileManager.default.isExecutableFile(atPath: path) {
244-
return Invocation(executableURL: URL(fileURLWithPath: path), arguments: args, environment: env)
245-
}
242+
for path in ["/opt/homebrew/bin/gh", "/usr/local/bin/gh", "/usr/bin/gh"]
243+
where FileManager.default.isExecutableFile(atPath: path) {
244+
return Invocation(executableURL: URL(fileURLWithPath: path), arguments: args, environment: env)
246245
}
247246

248247
// Fall back to PATH resolution

macos/Sources/Features/Worktrunk/GitHub/GitHubModels.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ struct PRStatus: Identifiable, Equatable {
7676
return .pending
7777
}
7878

79+
// swiftlint:disable:next large_tuple
7980
var checkCounts: (passed: Int, failed: Int, pending: Int, skipped: Int) {
8081
var passed = 0, failed = 0, pending = 0, skipped = 0
8182
for check in checks {

macos/Sources/Features/Worktrunk/WorktrunkClient.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,9 @@ struct WorktrunkClient {
9898
return Invocation(executableURL: url, arguments: args, environment: env)
9999
}
100100

101-
for path in wtExecutableCandidatePaths() {
102-
if FileManager.default.isExecutableFile(atPath: path) {
103-
return Invocation(executableURL: URL(fileURLWithPath: path), arguments: args, environment: env)
104-
}
101+
for path in wtExecutableCandidatePaths()
102+
where FileManager.default.isExecutableFile(atPath: path) {
103+
return Invocation(executableURL: URL(fileURLWithPath: path), arguments: args, environment: env)
105104
}
106105

107106
// Last resort: rely on PATH resolution.

0 commit comments

Comments
 (0)