{"id":14985944,"url":"https://github.com/fyg369/kernel-action","last_synced_at":"2025-10-13T18:42:25.303Z","repository":{"id":240310420,"uuid":"799861622","full_name":"Fyg369/Kernel-Action","owner":"Fyg369","description":"a action to build kernel automatically[FORCE PUSH WARNING]","archived":false,"fork":false,"pushed_at":"2025-06-29T08:59:21.000Z","size":893,"stargazers_count":10,"open_issues_count":0,"forks_count":12,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-29T09:37:40.974Z","etag":null,"topics":["action","actions","android","ci","kernel","kernelsu"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Fyg369.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-05-13T08:43:41.000Z","updated_at":"2025-06-29T08:59:25.000Z","dependencies_parsed_at":"2024-06-15T07:43:39.425Z","dependency_job_id":"d4ad1f97-16cc-44f7-aa59-7590256c89d3","html_url":"https://github.com/Fyg369/Kernel-Action","commit_stats":{"total_commits":336,"total_committers":1,"mean_commits":336.0,"dds":0.0,"last_synced_commit":"236c617bd449057aacb9a33ffac72b560da1247a"},"previous_names":["fyg369/kernel-action"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Fyg369/Kernel-Action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fyg369%2FKernel-Action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fyg369%2FKernel-Action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fyg369%2FKernel-Action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fyg369%2FKernel-Action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Fyg369","download_url":"https://codeload.github.com/Fyg369/Kernel-Action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fyg369%2FKernel-Action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279016600,"owners_count":26085852,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["action","actions","android","ci","kernel","kernelsu"],"created_at":"2024-09-24T14:11:59.352Z","updated_at":"2025-10-13T18:42:25.297Z","avatar_url":"https://github.com/Fyg369.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003eAndroid Kernel Build Action\u003c/h1\u003e\n  \u003ch3\u003e\u003ci\u003ePowered By GitHub Actions\u003c/i\u003e\u003c/h3\u003e\n\u003c/div\u003e\n\nA workflow to automatically build an Android kernel\n\n[![](https://img.shields.io/github/actions/workflow/status/dabao1955/kernel_build_action/main.yml?style=for-the-badge\u0026color=fee4d0\u0026logo=githubactions\u0026logoColor=fee4d0)](https://github.com/dabao1955/kernel_build_action/actions/workflows/main.yml)\n[![](https://img.shields.io/github/issues/dabao1955/kernel_build_action?style=for-the-badge\u0026color=fee4d0\u0026logo=files\u0026logoColor=fee4d0)](https://github.com/dabao1955/kernel_build_action/issues)\n[![](https://img.shields.io/github/stars/dabao1955/kernel_build_action?style=for-the-badge\u0026color=fee4d0\u0026logo=starship\u0026logoColor=fee4d0)](https://github.com/dabao1955/kernel_build_action/stargazers)\n[![](https://img.shields.io/github/forks/dabao1955/kernel_build_action?style=for-the-badge\u0026color=fee4d0\u0026logo=git\u0026logoColor=fee4d0)](https://github.com/dabao1955/kernel_build_action/forks)\n[![](https://img.shields.io/github/license/dabao1955/kernel_build_action?style=for-the-badge\u0026color=fee4d0\u0026logo=apache\u0026logoColor=fee4d0)](https://github.com/dabao1955/kernel_build_action/blob/main/LICENSE)\n[![](https://img.shields.io/github/v/release/dabao1955/kernel_build_action?style=for-the-badge\u0026color=fee4d0\u0026logo=github\u0026logoColor=fee4d0)](https://github.com/dabao1955/kernel_build_action/releases/latest)\n[![](https://img.shields.io/github/last-commit/dabao1955/kernel_build_action?style=for-the-badge\u0026color=fee4d0\u0026logo=codeigniter\u0026logoColor=fee4d0)](https://github.com/dabao1955/kernel_build_action/commits/main/)\n\n\n\n\u003e [!IMPORTANT]\n\u003e This workflow is universal. You need to have a certain understanding in writing github workflows and a little knowledge of the Android kernel to use this.\n\n## How to use?\n- First, you need to determine the kernel source code and configuration files.\n- Find your kernel source repository and configure the workflow file according to the following example and README.md:\n\n```yml\nname: CI\n\non:\n  workflow_dispatch:\n\njobs:\n  build-kernel:\n    name: Build Kernel\n    runs-on: ubuntu-22.04\n    steps:\n      - name: Build\n        uses: dabao1955/kernel_build_action@main\n        with:\n          kernel-url: https://github.com/AcmeUI-Devices/android_kernel_xiaomi_cas\n          kernel-branch: taffy\n          config: cas_defconfig\n          arch: arm64\n          aosp-gcc: true\n          aosp-clang: true\n          android-version: 12\n          aosp-clang-version: r383902\n```\nOr use the [preset workflow file](https://github.com/dabao1955/kernel_build_action/blob/main/.github/workflows/build.yml) to modify it.\n\n\u003e [!NOTE]\n\u003e You do not need to fork this repository.\n\u003e\n\u003e If you just want to compile the kernel, please do not submit PR after modification!\n\n- Finally, run the workflow you just wrote.\n## Inputs\n\u003e [!WARNING]\n\u003e\n\u003e enable lxc or nethunter input options may cause kernel compilation failed!\n\n| input               | required | description | example value |\n|---------------------|----------|-------------|---------|\n| kernel-url | true | URL of Android kernel source code for your phone | https://github.com/username/project |\n| kernel-dir | false | The directory name of the Android kernel source code. This option may be used for OPLUS Kernel source code. | kernel |\n| depth | false | | 1 |\n| vendor | false | | false |\n| vendor-url | false | url of additional source code for the Android kernel source code. This option may be used for OPLUS source code. | https://github.com/username/project|\n| vendor-dir | false | | vendor |\n| kernel-branch | false | The branch of the source code that needs to be cloned, defaults branch to git clone is main | main |\n| vendor-branch | false | The branch of the vendor source code that needs to be cloned, defaults branch to git clone is main | main |\n| config | true | Compile the selected configuration file for the Android kernel | defconfig |\n| arch | true | The architecture of your mobile phone SOC is arm64 by default | arm64 |\n| android-version | true | The Android version required when downloading aosp-clang. If you want to use the latest aosp-clang or you do not use aosp-clang to compile the kernel, please ignore this option | 12 |\n| ksu | false | Enable KernelSU | true |\n| ksu-version | false | KernelSU version | v0.9.5 |\n| ksu-lkm(may not build successfully for non-GKI devices) | false | Build KernelSU as a linux kernel module | true |\n| ksu-other | false | | false |\n| ksu-url | false | Use 3rd KernelSU | https://github.com/xxx/KernelSU/ |\n| rekernel | false | Enable Re-Kernel support | true |\n| disable-lto | false | Disable [Link Time Optimization](https://llvm.org/docs/LinkTimeOptimization.html) | false |\n| disable_fst | false | Disable fstack-protector-strong (clang-r383902b) | false |\n| disable_cc_werror | false | This is used to fix kernels that do not support or have Kprobes disabled, addressing the issue where KernelSU fails to detect the variable indicating Kprobes is enabled and throws a warning. | false |\n| lxc | false | Enable LXC and docker to config | false | \n| lxc-patch | false | Add patch avoid not booting after enable lxc | false | \n| nethunter | false | Enable Kali nethunter | false | \n| nethunter-patch | false | | false |\n| kvm | false | | false |\n| bbrplus | false | | false |\n| kprobes | false | Enable kprobes to config | false |\n| ccache | false | Enable ccache(Only valid when compiled with clang) | false |\n| aosp-gcc | false | Use aosp-gcc to compile the kernel or assist in compiling the kernel (when aosp-clang is enabled) | false |\n| other-gcc32-url | false | Please fill in the download link of other gcc32 in this option. Supports .xz, .zip, .tar and .git formats | https://github.com/username/gcc |\n| other-gcc32-branch | false | | main |\n| other-gcc64-url | false | Please fill in the download link of other gcc64 in this option. Supports .xz, .zip, .tar and .git formats | https://github.com/username/gcc |\n| other-gcc64-branch | false | | main |\n| aosp-clang | false | Compile the kernel using aosp-clang | false |\n| aosp-clang-version | false | please search for them according to your own needs at [official website](https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86) and choose the appropriate clang according to the Android system version instead of blindly choosing `r383902` | r383902 |\n| other-clang-url | false | Please fill in the download link of other clang in this option. Supports .xz, .zip, .tar and .git formats | https://github.com/kdrag0n/proton-clang |\n| other-clang-branch | false | | 10.0|\n| anykernel3 | false | Package the compiled kernel using AnyKernel3. If this option is disabled, You need to fill `bootimg-url`. | false |\n| anykernel3-url | false | 3rdparty AnyKernel3 url | https://github.com/username/AnyKernel3 |\n| release | false | After the kernel compilation is completed, it will be automatically published to the releases page | true |\n| access-token | false | Please fill it if you want to release kernel | ghp_xxxxxx |\n| bootimg-url | false | A URL that can download the local boot.img | https://127.0.0.1/boot.img |\n| extra-cmd | false | Compile the kernel with extra options, such as LD=ld.lld | AS=llvm-as |\n\n## FAQ\n\u003e [!CAUTION]\n\u003e Please Read this first if you have some questions!\n\n### How to use 3rd clang？\nYou should disable aosp-clang and android-ndk options to use it.\n\n### Why KernelSU version built with this action is still v0.9.5？\nSee [KernelSU 's release note](https://github.com/tiann/KernelSU/releases/tag/v1.0.0) for more details.\n\n### Why the workflow exits with a code with an error value of some number？\n- If you get an error while downloading the toolchain or pulling the source code, please check whether your option or source code address is legitimate.\n- If you encounter problems during compilation, consider replacing the source code or replacing the compiler.\n\n### Build failed while using third-party GCC ?\nTry add LLVM=1 option with clang.\n\n## Credits\n- [KernelSU](https://github.com/tiann/KernelSU)\n- [dabao1955](https://github.com/dabao1955/kernel_build_action)\n- [tomxi1997](https://github.com/tomxi1997/LXC_KernelSU_Action)\n- [5kind_Action](https://github.com/5kind/LXC-DOCKER-KernelSU_Action)\n- [slimhub_actions](https://github.com/rokibhasansagar/slimhub_actions)\n- [DogDayAndroid](https://github.com/DogDayAndroid/Android-Builder)\n- [KernelSU_Action](https://github.com/XiaoleGun/KernelSU_Action)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffyg369%2Fkernel-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffyg369%2Fkernel-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffyg369%2Fkernel-action/lists"}