Browse Source

ci(verify): 删除 aliyun 镜像,与 auto-release 对齐

verify.yml 缺了 auto-release.yml 里的 sed 步骤,GitHub runner 上 aliyun
镜像 502 → Gradle 禁用整个 maven 仓库 → 15 个 task 连锁失败。首次在 main
激活即红,与代码无关。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
5151561 3 months ago
parent
commit
aca5a62cc5
1 changed files with 6 additions and 0 deletions
  1. 6 0
      .github/workflows/verify.yml

+ 6 - 0
.github/workflows/verify.yml

@@ -35,6 +35,12 @@ jobs:
       - name: Set up Gradle
         uses: gradle/actions/setup-gradle@v4
 
+      # 与 auto-release.yml 同一处理:settings.gradle 里的 aliyun 镜像面向国内开发机,
+      # 在 GitHub runner 上会 502,且 Gradle 一旦判定某仓库失败就整个禁用它。
+      - name: Remove Aliyun mirrors (unreliable in CI)
+        run: |
+          sed -i '/maven.aliyun.com/d' settings.gradle
+
       - name: Run tests, lint, architecture check, and debug build
         run: |
           chmod +x gradlew