Procházet zdrojové kódy

fix: conditionally disable defconfig check for android16-6.12

Update the GitHub Action for building the kernel to only disable the defconfig check in BUILD.bazel when the bypass input is not explicitly set to false. This ensures the check runs by default while allowing users to bypass it when needed.
trae před 3 měsíci
rodič
revize
a4a2fa7f11
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  1. 3 1
      .github/actions/build-kernel/action.yml

+ 3 - 1
.github/actions/build-kernel/action.yml

@@ -64,7 +64,9 @@ runs:
         HOSTLD="${{ github.workspace }}/kernel/common/ld-wrapper"
       else
         if [[ ${{ inputs.version }} == "android16-6.12" ]]; then
-          sed -i '/name = "kernel_aarch64",/a\    check_defconfig = "disabled",' common/BUILD.bazel
+          if [ "${{ inputs.bypass }}" = "false" ]; then
+            sed -i '/name = "kernel_aarch64",/a\    check_defconfig = "disabled",' common/BUILD.bazel
+          fi
           tools/bazel run \
             --config=fast \
             --config=stamp \