Repository navigation
Make the build job lighter - #1026
Merged
Merged
Conversation
This was referenced Nov 1, 2026
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.
Problem
A change to a declaration in the App took about 12 minutes in the
buildjob. 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
checksjob runs the CLI tests. Thebuildjob still restores the CLI cache to stage the CLI binary.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:
buildjobA 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.