Fyg369 / Kernel-Action

a action to build kernel automatically
4 stars 2 forks source link
action actions android ci kernel kernelsu

Android Kernel Build Action

Powered By GitHub Actions

A Workflow to build Android Kernel automatically

Note

This workflow is universal. You need to have a certain foundation in writing github workflows and a little knowledge of the Android kernel to use this.

Warning

Strongly recommends using the stable version (such as v1.2) instead of the development version (main), which may have some technical problems.

How to use?

name: CI

on:
  workflow_dispatch:

jobs:
  build-kernel:
    name: Build Kernel
    runs-on: ubuntu-20.04
    steps:
      - name: Build
        uses: dabao1955/kernel_build_action@main
        with:
          kernel-url: https://github.com/AcmeUI-Devices/android_kernel_xiaomi_cas
          kernel-branch: taffy
          config: cas_defconfig
          arch: arm64
          aosp-gcc: true
          aosp-clang: true
          python-2.7: true
          android-version: 12
          aosp-clang-version: r383902

Or use the preset workflow file to modify it.

[!NOTE] You do not need to fork this repository.

If you just want to compile the kernel, please do not submit PR after modification!

Todo

FAQ

How to use 3rd clang?

You should disable aosp-clang and android-ndk options to use it.

Why KernelSU version built with this action is still v0.9.5?

See KernelSU 's release note for more details.

Credits