浏览代码

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 3 月之前
父节点
当前提交
a4a2fa7f11
共有 1 个文件被更改,包括 3 次插入1 次删除
  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 \