Skip to content

Make the build job lighter - #1026

Merged
onevcat merged 5 commits into
mainfrom
ci/lighter-build-job
Nov 1, 2026
Merged

onevcat merged 5 commits into
mainfrom
ci/lighter-build-job

Conversation

@onevcat

@onevcat onevcat commented Nov 1, 2026

Copy link
Copy Markdown
Owner

Problem

A change to a declaration in the App took about 12 minutes in the build job. Three costs did not depend on the App: the CLI tests shared the runner with the App build, the package cache was 1467 MB, and each version change started a cold build.

Change

  • The checks job runs the CLI tests. The build job still restores the CLI cache to stage the CLI binary.
  • Main removes the repository clones and the unused Sentry frameworks before it saves the package cache. The entry is 310 MB.
  • The App cache key does not use App/Config/Version.xcconfig.

The first main run after this change has a cold App build, because the key changes.

Verification

Trial PR #1024 ran these changes on the hosted runner, with the package and CLI caches saved from the pull request:

Case build job
Interface change, before 11:50
Interface change, after 8:49, 10:41, 9:52, 9:08
Cold App build, after 17:04, 10:36

A local version change compiled no file and took 8 s. A hosted sample of this waits for main to save the new entry.

Details: docs-ai/016-dev-build-and-ci-workflow/012-lighter-build-job.md.

@onevcat
onevcat merged commit f72b4c5 into main Nov 1, 2026
2 checks passed
@onevcat
onevcat deleted the ci/lighter-build-job branch November 1, 2026 03:19
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