Browse Source

perf: 移除 self-hosted runner 上不必要的 npm 远程缓存配置

- 注释掉 build-android job 中的 cache: 'npm' 配置
- Self-hosted runner 本地 node_modules 会持久保留,无需上传到 GitHub Actions 云端
- 优化 Post 步骤耗时,预计节省 2-5 分钟的缓存上传时间
- 添加说明注释解释优化原因

改动文件:
- .github/workflows/build-linux-arm-appimage.yml
dengdx 2 days ago
parent
commit
7f002fb9c2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      .github/workflows/build-linux-arm-appimage.yml

+ 1 - 1
.github/workflows/build-linux-arm-appimage.yml

@@ -107,7 +107,7 @@ jobs:
         uses: actions/setup-node@v4
         with:
           node-version: '22'
-          cache: 'npm'  # 缓存 npm 依赖
+          # cache: 'npm'  # Self-hosted runner 不需要远程缓存,本地 node_modules 会保留
 
       - name: 安装 Android SDK (Windows)
         if: runner.os == 'Windows'