Example iOS project with CI/CD powered by cibuild.
- Zero-config CI setup with
ci init --create - Auto-generated GitHub Actions workflow using
invarnhq/cibuild@v1 - Xcode archive, test, and build steps running on GitHub Actions runners
- Separate workflows for push (
primary), pull requests (pull-request), and tagged releases (release)
The pipeline at .ci/pipelines/cibuild.yml defines four workflows:
| Workflow | Trigger | Steps |
|---|---|---|
primary |
Push to main |
Cache pull, xcode-archive, xcode-test, cache push |
pull-request |
PR targeting any branch | Cache pull, xcode-test, xcodebuild, cache push |
release |
Manual | Cache pull, xcode-archive (App Store), build summary |
hello-world |
Manual | Echo "Hello World" |
Builds are triggered automatically via the trigger_map in the pipeline YAML:
trigger_map:
- push_branch: main
workflow: primary
- pull_request_target_branch: "*"
workflow: pull-request- Push to
main→ runs theprimaryworkflow (archive + test) - Pull request targeting any branch → runs the
pull-requestworkflow (test + build) releaseandhello-worldare manual-only (run from the dashboard or CLI)
This project was initialized with:
ci init --createThis generated both the pipeline YAML and the GitHub Actions workflow automatically.