Caching the .build folder for CI reuse

tuist install takes a long time when fetching dependencies if the .build folder is missing (specifically, about 5 minutes vs. 10 seconds if the folder is present).

And this happens on every build in CI. It would be possible to cache the .build folder using CI, but cache has a size limit (1GB for Bitbucket).

Is there a way to solve this, like moving the location of .build folder to a common location, or something?

Hey @emelyanovkirill :wave:

We have some guidance for incremental package resolution on the CI here: Continuous integration · Registry · Develop · Guides · Tuist

As you mentioned, the .build directory can get quite large and easily go over the 1GB limit. You can either:

  • Look into increasing the CI cache limit
  • Migrate to the Tuist Registry that is by about 80 % more space efficient.