Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Build Your Kernel with Github Action

License Language Issues Pull Requests

This Github Action helps you build kernels. It reads multiple kernel sources from a configuration file and builds them using different toolchains. Additionally, it supports patching the kernel with KernelSU and uploading the built kernel image.



  Configure  

  Quick Start  

  Contributor  


Github Action

This action contains three jobs: Setup-Env, Build-Kernel, Post-Update.

Setup-Env stage is the Dependency Installation stage.

Build-Kernel stage is the stage of building the kernel and packaging the kernel with AnyKernel and uploading it to the destination group like 'Telegram'/other download mirrors (The Upload stage only supports uploading to Telegram at this time "Upload Mirror in progress").

Post-Update stage is the stage where this will create an auto post update to the destination channel with support (banner, download link, and credit as appreciation).

Post-Update Feature

Trigger

Event name Description
workflow_dispatch Manually run

Workflow

Step Description
Install prerequisites Install the necessary dependencies for building the kernel
Setup Anykernel3 Clone the Anykernel3 repository to prepare for packaging the kernel
Clone kernel source Clone the kernel source code repository for the Android device
Get toolchains Obtain the required cross-compilation toolchains for building the kernel
Make defconfig Generate the kernel configuration file
Build kernel Compile the kernel source code to create the kernel image
Upload Image.gz Upload the compressed kernel image file to a designated location
Upload dtb Upload the device tree blob file to a designated location
Pack AnyKernel3.zip Package the kernel image and device tree files into an Anykernel3 zip file
Upload AnyKernel3 image Upload the Anykernel3 zip file to a designated location
Post Update Channel Auto Post Release On Channel With Banners & Description

Configuration

Notes: This is for good security and privacy.

You Must Set Up Configuration With Secret Code.

Configuration as follows:

Secrets

Post Update Configuration

Modify the Common/Post.sh file and change some there like Release Name ,Notes ,Credits etc

Notes :if you build with this action, please credit the owner of this repo

How to use

This project's basic usage is as follows:

  1. Fork this project on GitHub.

  2. Modify the Common/build.sh file and change this on line 51 : git clone -- depth=1 https://github.com/ALprjkt/Anykernel3 AnyKernel -b ysl with your own device's anykernel.

  3. Go to the Action page on Github and find Build kernels Run Workflow like this :

Setup

and adjust it to what your device needs.

Notes: for link preview banner You can't just use any image link, you have to use the preview image/raw image link for example: Here

Acknowledgments

Contributor

contributors contributors contributors

License

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

About

Build Kernel With Github Action Rebrand From KernelCI (Beta)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages