ci: 修复CodeQL构建失败 - 移除阿里云镜像并禁用configuration-cache
- CI环境中阿里云镜像不稳定(502 Bad Gateway),构建前用sed移除 - 添加--no-configuration-cache避免序列化错误
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user