James McConnell 1 год назад
Родитель
Сommit
a643a7160e
1 измененных файлов с 13 добавлено и 2 удалено
  1. 13 2
      .github/workflows/gki-kernel.yml

+ 13 - 2
.github/workflows/gki-kernel.yml

@@ -328,13 +328,24 @@ jobs:
           echo "Building the kernel..."
           echo "Building the kernel..."
           if [ -f "build/build.sh" ]; then
           if [ -f "build/build.sh" ]; then
             sed -i 's/-dirty//' ./common/scripts/setlocalversion
             sed -i 's/-dirty//' ./common/scripts/setlocalversion
-            LTO=${{ inputs.lto_type }} BUILD_CONFIG=common/build.config.gki.aarch64 build/build.sh
+            #LTO=${{ inputs.lto_type }} BUILD_CONFIG=common/build.config.gki.aarch64 build/build.sh
           else
           else
             rm -rf ./common/android/abi_gki_protected_exports_*
             rm -rf ./common/android/abi_gki_protected_exports_*
             sed -i "/stable_scmversion_cmd/s/-maybe-dirty//g" ./build/kernel/kleaf/impl/stamp.bzl
             sed -i "/stable_scmversion_cmd/s/-maybe-dirty//g" ./build/kernel/kleaf/impl/stamp.bzl
-            tools/bazel build --config=fast --lto=${{ inputs.lto_type }} //common:kernel_aarch64_dist
+            #tools/bazel build --config=fast --lto=${{ inputs.lto_type }} //common:kernel_aarch64_dist
           fi
           fi
 
 
+      - name: Multi-line multi-command Test (Fix for random build errors)
+        uses: nick-fields/retry@v3
+        with:
+          max_attempts: 2
+          command: |
+            if [ -f "build/build.sh" ]; then
+              LTO=${{ inputs.lto_type }} BUILD_CONFIG=common/build.config.gki.aarch64 build/build.sh
+            else
+              tools/bazel build --config=fast --lto=${{ inputs.lto_type }} //common:kernel_aarch64_dist
+            fi
+
       - name: Create Bootimgs Folder and Copy Images
       - name: Create Bootimgs Folder and Copy Images
         if: ${{ inputs.android_version == 'android12' || inputs.android_version == 'android13' }}
         if: ${{ inputs.android_version == 'android12' || inputs.android_version == 'android13' }}
         run: |
         run: |