Skip to content

Add CI: package tests and iOS builds - #16

Merged
servercimen merged 2 commits into
mainfrom
ci/github-actions
Nov 20, 2026
Merged

servercimen merged 2 commits into
mainfrom
ci/github-actions

Conversation

@servercimen

@servercimen servercimen commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

Summary

Adds a GitHub Actions workflow that runs on pushes to main and on pull requests:

  • Package tests on macOS: swift test.
  • iOS builds: the package, the demo app, the chat sample and the benchmark app, for generic/platform=iOS and without code signing. The app builds pass -skipMacroValidation, because the runner cannot approve package macros.

The workflow has read-only permissions, and a newer run on the same branch cancels an older one.

Refs #11. This PR does not add release tags or a changelog: the first version number is a decision for the maintainer.

A fix that the first CI run found

On the runner, with Xcode 26.6, swift test ran the Swift Testing tests without loading XCTest. InlineParser.checksSettledResult was on only when the XCTestCase class was loaded, so the parser cross-check was off and settledResultIsCheckedInTests failed. The second commit also turns the check on when a .xctest bundle is loaded, or when the runner's arguments name one. Neither is there in an app, so apps keep the check off.

Tests

  • The four iOS build commands succeed locally with Xcode 27.2.
  • The workflow runs on this PR, so its checks show whether it works on GitHub's runners. The first run failed for the reason above; the second commit fixes it.

🤖 Generated with Claude Code

servercimen and others added 2 commits November 19, 2026 19:54
No CI ran the tests or built the apps in the repository.

The workflow runs on pushes to main and on pull requests. One job runs
swift test on macOS. The other builds the package, the demo app, the chat
sample and the benchmark app for iOS, without code signing.

Refs #11.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
checksSettledResult was on only when the XCTestCase class was loaded.
With Xcode 26.6, swift test runs Swift Testing tests without loading
XCTest, so the cross-check was off and settledResultIsCheckedInTests
failed on CI. A loaded .xctest bundle, or an .xctest path in the runner's
arguments, now also turns it on. Neither is there in an app.

Refs #11.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@servercimen
servercimen merged commit 1978268 into main Nov 20, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant