# Recompilation when caching .build folder on CI

**URL:** <https://forums.swift.org/t/recompilation-when-caching-build-folder-on-ci/31596>\
**Category:** Using Swift\
**Created:** [December 11, 2019, 8:27pm UTC](https://forums.swift.org/t/recompilation-when-caching-build-folder-on-ci/31596 "2019-12-11T20:27:04Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![SDGGiesbrecht](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/sdggiesbrecht/32/4768_2.png) [@SDGGiesbrecht](https://forums.swift.org/u/SDGGiesbrecht)\
**Post date:** [December 11, 2019, 9:03pm UTC](https://forums.swift.org/t/recompilation-when-caching-build-folder-on-ci/31596/2 "2019-12-11T21:03:20Z")

</div>

It’s probably a variation of this:

> [@Incremental builds with Swift Package Manager and Linux / Docker](https://forums.swift.org/t/incremental-builds-with-swift-package-manager-and-linux-docker/26538):
>
> I'm using Swift Package Manager to build my Swift server app in a Linux Docker container. Each time I rebuild it fetches all of the dependencies and rebuilds them all. Recently I started using Swift-NIO as a dependency and it takes a while to compile. Are incremental builds supported on Linux? I tried to get incremental builds working by having my Package.swift + some dummy files copied into docker -\> build -\> copy in the real source files -\> build. I was hoping the dependencies of the first bu…

---

_[View the full topic](https://forums.swift.org/t/recompilation-when-caching-build-folder-on-ci/31596)._
