Repository navigation
ci: run lint, package tests, and build on macOS runner - #7
Merged
Merged
Conversation
scripts/mac syncs the Linux checkout to a per-worktree directory on the Mac and runs scripts/on-mac/<command> there. bootstrap installs the Brewfile tools.
scripts/mac test runs swift test on the Mac host. The package uses the Swift 6 language mode and treats warnings as errors.
scripts/mac lint runs swiftformat --lint and swiftlint --strict on the Mac. scripts/mac format formats on the Mac and copies the tracked Swift files back. SwiftLint drops opening_brace and trailing_comma because SwiftFormat owns them.
scripts/mac build generates Practical.xcodeproj and builds an unsigned generic iOS build. The keyboard extension requests open access and links KeyboardCore.
scripts/mac install picks the connected iPhone, unlocks the login keychain when it is locked, builds with automatic provisioning, then installs and launches the app. docs/device-checklist.md lists the manual steps.
The workflow calls the same scripts/on-mac scripts that scripts/mac runs over SSH.
Resolve the add/add conflict on AGENTS.md left by squash-merging the earlier stack layers. This branch already contains everything in main. AI-Harness: Claude Code AI-Model: claude-opus-5-5 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
head exits after the first line, so xcodebuild -version hit a broken pipe on its second line and aborted. With pipefail this failed bootstrap on CI intermittently. sed -n 1p reads all input and prints only the first line. AI-Harness: Claude Code AI-Model: claude-opus-5-5 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
lint、テスト、ビルドの結果を、手元の申告ではなく CI で確かめ、main の必須チェックにする。
What changed
.github/workflows/check.ymlが macOS ランナーでscripts/on-mac/の bootstrap、lint、test、build を順に実行する。手元のscripts/macが SSH 越しに呼ぶのと同じスクリプトを使う。scripts/on-mac/bootstrapの版の表示をhead -1からsed -n 1pに変えた。headが先に終了するとxcodebuild -versionが Broken pipe で異常終了し、pipefailによって CI がときどき失敗していた。Scope
Tradeoffs
swift-tools-version6.2 が通る版であれば足りる。Verification