Issue: Build hangs right after downloading and setting up the cache

This is very likely due to Windows Defender slowing down the process. See this answer for a remedy.