Cache dependencies regardless of build outcome