Repository navigation
perf(ci): build the iOS IPA in ~4 minutes by reusing the native app - #32
Merged
Merged
Conversation
The IPA rebuilt every native target on each release (~13 min warm, ~80 cold) though most releases change only JavaScript. Key the built app by Expo's native fingerprint and, on a hit, regenerate only the Hermes bundle, assets, Info.plist version, and embedded Expo config. Claude Opus 5.5 via Claude Code in T3 Code
The fast path spent its time installing packages (4.6 min) and bundling (3.6 min) on the Intel macOS runner. Fingerprinting, JavaScript refresh, and packaging need no macOS, so they move to Linux jobs. The macOS job now only builds and saves the native app when none matches. Claude Opus 5.5 via Claude Code in T3 Code
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.
Every release rebuilt the unsigned IPA's native code on an Intel macOS runner: 13–25 min warm, ~80 cold. Most releases change only JavaScript.
The workflow is now three jobs:
.app(enableCrossOsArchive).main.jsbundle(expo export:embed+hermesc, same arguments asreact-native-xcode.sh), its assets, the Info.plist version, and expo-constants'app.config. Then it packages the IPA. Updates are disabled, so expo-updates launchesmain.jsbundleand never readsapp.manifest.Verification, all on this branch:
76eba841…).main.jsbundlediffers by 21 KB: Metro sortsrequire.contextfiles, so the likely cause is the Linuxhermescbuild laying out the same bytecode differently. EAS Update ships Linux-compiled Hermes bytecode to iOS devices routinely.Branch caches aren't visible to
main, so the first nightly after merge builds the native app once.Claude Opus 5.5 via Claude Code in T3 Code