Parcourir la source

fix(action): remove partial clone option and optimize repo sync command

TheWildJames il y a 4 mois
Parent
commit
ca146f4d73
1 fichiers modifiés avec 3 ajouts et 2 suppressions
  1. 3 2
      .github/actions/download-kernel/action.yml

+ 3 - 2
.github/actions/download-kernel/action.yml

@@ -34,7 +34,7 @@ runs:
         FORMATTED_BRANCH="${{ inputs.android_version }}-${{ inputs.kernel_version }}-${{ inputs.os_patch_level }}"
 
         init_repo() {
-          repo init -u https://android.googlesource.com/kernel/manifest -b common-${FORMATTED_BRANCH} --depth=1 --partial-clone
+          repo init -u https://android.googlesource.com/kernel/manifest -b common-${FORMATTED_BRANCH} --depth=1
           REMOTE_BRANCH=$(git ls-remote https://android.googlesource.com/kernel/common ${FORMATTED_BRANCH})
           DEFAULT_MANIFEST_PATH=.repo/manifests/default.xml
           DEPRECATED=false
@@ -55,7 +55,8 @@ runs:
 
         while [ $attempt -le $MAX_RETRIES ]; do
           echo "Attempt $attempt/$MAX_RETRIES: repo sync (timeout $SYNC_TIMEOUT)..."
-          if timeout $SYNC_TIMEOUT repo sync -c -j8 --fail-fast --no-tags --force-sync --no-clone-bundle --optimized-fetch --retry-fetches=3; then
+          #if timeout $SYNC_TIMEOUT repo sync -c -j16 --fail-fast --no-tags --force-sync --no-clone-bundle --optimized-fetch --retry-fetches=3; then
+          if timeout $SYNC_TIMEOUT repo sync -c --no-tags --no-clone-bundle --optimized-fetch --retry-fetches=3 --depth=1; then
             echo "repo sync succeeded on attempt $attempt."
             break
           fi