前端Vue项目采用的GitLab的 CI/CD进行打包部署,每次在如下提示时都会耗时很久,正常吗?
Checking cache for dev...
Runtime platform arch=amd64 os=windows pid=11676 revision=c6e7e194 version=14.8.2
No URL provided, cache will not be downloaded from shared cache server. Instead a local version of cache will be extracted.
整个CI/CD需要耗时13分钟的样子,不知道是否合理。node_modules等也是设置了缓存的。
在创建runner的时候,需要指定缓存服务器的地址,例如:
有了缓存服务器,编译的时候才能把中间结果存放在缓存服务器上,下次编译就不用再重新拉取了,才能提高编译速度。