Browse Source

ci: 修复build-apk-for-user - 移除阿里云镜像 + 禁用configuration-cache

HapeLee 5 months ago
parent
commit
20731b31e6
1 changed files with 5 additions and 1 deletions
  1. 5 1
      .github/workflows/build-apk-for-user.yml

+ 5 - 1
.github/workflows/build-apk-for-user.yml

@@ -39,10 +39,14 @@ jobs:
           echo "清空18PlusList.txt"
           echo "清空18PlusList.txt"
           echo "" > $GITHUB_WORKSPACE/app/src/main/assets/18PlusList.txt
           echo "" > $GITHUB_WORKSPACE/app/src/main/assets/18PlusList.txt
 
 
+      - name: Remove Aliyun mirrors (unreliable in CI)
+        run: |
+          sed -i '/maven.aliyun.com/d' settings.gradle
+
       - name: Build Debug APK
       - name: Build Debug APK
         run: |
         run: |
           chmod +x gradlew
           chmod +x gradlew
-          ./gradlew assembleAppDebug --no-daemon
+          ./gradlew assembleAppDebug --no-daemon --no-configuration-cache
         env:
         env:
           COMMIT_NUMBER: ${{ github.run_number }}
           COMMIT_NUMBER: ${{ github.run_number }}
           APP_VERSION_NAME: debug-${{ github.run_number }}
           APP_VERSION_NAME: debug-${{ github.run_number }}