Skip to content

Merge format+lint CI jobs and add caching#88

Merged
obj-p merged 1 commit intomainfrom
ci-caching
Apr 12, 2026
Merged

Merge format+lint CI jobs and add caching#88
obj-p merged 1 commit intomainfrom
ci-caching

Conversation

@obj-p
Copy link
Copy Markdown
Owner

@obj-p obj-p commented Apr 12, 2026

Summary

  • Combine the separate format and lint CI jobs into a single lint job — saves a runner startup (~60s) since both are read-only checks sharing the same Homebrew tools.
  • Cache Homebrew downloads keyed on Brewfile hash so swift-format and swiftlint bottle downloads are skipped on cache hit.
  • Add examples/spm/.build to the SPM cache path in build-and-test and ios-tests — this directory is separate from the root .build and was rebuilt from scratch on every run.

Test plan

  • CI lint job passes (formatting + SwiftLint in one job)
  • build-and-test and ios-tests cache hits on second run include examples/spm/.build

🤖 Generated with Claude Code

- Combine the separate format and lint jobs into a single lint job to
  save a runner startup (~60s) — both are read-only checks that share
  the same Homebrew tools.
- Cache Homebrew downloads (~/Library/Caches/Homebrew) keyed on
  Brewfile hash so swift-format and swiftlint bottle downloads are
  skipped on cache hit.
- Add examples/spm/.build to the SPM cache path in build-and-test and
  ios-tests — this directory is separate from the root .build and was
  rebuilt from scratch on every run.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@obj-p obj-p merged commit 3921421 into main Apr 12, 2026
4 checks passed
@obj-p obj-p deleted the ci-caching branch April 12, 2026 19:22
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