Does CircleCI save cache when a build step times out?



We have a project with nix build which takes over 2hrs to build the first time. I’d like to know if CircleCI saves the cache directories even when a build fails/timesout? If it does, it will allow us to build successfully in the following builds.



We only save cache for builds that pass.

Likewise, if your build fails, the next build won’t restore from cache.

Hope that clears things up.