From 430e4c8a5c170edc1f29ab254514b4960aea1974 Mon Sep 17 00:00:00 2001 From: ronit833 Date: Sun, 7 Sep 2025 11:50:31 +0530 Subject: [PATCH] Create build.yml --- .github/workflows/build.yml | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000000000..3420672dca2f2 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,38 @@ +name: Kernel Build + +on: + workflow_dispatch: # lets you start the build manually from the Actions tab + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout source + uses: actions/checkout@v3 + + - name: Install dependencies + run: | + sudo apt update + sudo apt install -y git wget curl build-essential bc bison flex libssl-dev \ + libncurses5-dev libncursesw5-dev python3 python3-pip zip unzip + + - name: Set up kernel toolchain + run: | + git clone https://github.com/kdrag0n/proton-clang.git --depth=1 clang + + - name: Build kernel + run: | + export PATH=$GITHUB_WORKSPACE/clang/bin:$PATH + export ARCH=arm64 + export SUBARCH=arm64 + export CROSS_COMPILE=aarch64-linux-gnu- + export CROSS_COMPILE_ARM32=arm-linux-gnueabi- + make O=out ARCH=arm64 vendor/lime_defconfig + make -j$(nproc) O=out ARCH=arm64 + + - name: Upload kernel zip + uses: actions/upload-artifact@v3 + with: + name: lime-kernel + path: out/arch/arm64/boot/Image.gz-dtb