ci: 修复CodeQL构建失败 - 移除阿里云镜像并禁用configuration-cache

- CI环境中阿里云镜像不稳定(502 Bad Gateway),构建前用sed移除
- 添加--no-configuration-cache避免序列化错误
This commit is contained in:
HapeLee
2026-06-01 01:15:13 +08:00
parent aa9e5a4458
commit c4d7bcfac7
+5 -1
View File
@@ -39,8 +39,12 @@ jobs:
languages: ${{ matrix.language }}
build-mode: manual
- name: Remove Aliyun mirrors (unreliable in CI)
run: |
sed -i '/maven.aliyun.com/d' settings.gradle
- name: Build with Gradle
run: ./gradlew assembleAppDebug --no-daemon -Dorg.gradle.warning.mode=none
run: ./gradlew assembleAppDebug --no-daemon --no-configuration-cache -Dorg.gradle.warning.mode=none
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3