Guides
How to make Windows CI faster
Windows jobs take three times as long as the equivalent Linux jobs.
6 min read
Windows jobs take three times as long as the equivalent Linux jobs.
Why it happens
Windows boots more slowly, Defender scans everything the checkout writes, and NuGet restore is network-chatty.
How to fix it
- Exclude the workspace from Defender real-time scanning
- Cache ~/.nuget/packages and restore with --locked-mode
- Build with MSBuild -m for parallel project builds
- Use a provider with warm Windows pools to remove the boot cost
Your next build could be twice as fast, at half the price
Start free. Migrating away is the same one line, and we publish that diff too.
Related
How to cache MSBuild outputEvery build recompiles all projects.Installing Visual Studio components in CIA required VS workload is missing and installing it takes fifteen minutes.How to sign Windows binaries in CIAuthenticode signing needs a certificate that must not be exposed.How to parallelise .NET tests.NET tests run serially and take twenty minutes.