Skip to content

Compile kernel

Compile kernel #2

Workflow file for this run

#
# Copyright (C) 2023-2024 Kneba <abenkenary3@gmail.com>
#
name: Compile kernel
on:
workflow_dispatch:
branches: [tom/hmp]
env:
TOKEN: ${{ secrets.TOKEN }}
USERNAME: ${{ secrets.USERNAME }}
TG_CHAT_ID: ${{ secrets.TG_CHAT_ID }}
TG_TOKEN: ${{ secrets.TG_TOKEN }}
jobs:
kernel-build:
runs-on: ubuntu-latest
container:
image: debian:trixie-slim
steps:
- uses: actions/checkout@v4
- name: Setup CI
run: |
apt update -y && apt upgrade -y && apt install -y sudo
sudo apt install glibc-source bc bison ca-certificates curl flex gcc git libc6-dev libssl-dev openssl python-is-python3 ssh wget zip zstd make gcc-arm-linux-gnueabi software-properties-common build-essential libarchive-tools gcc-aarch64-linux-gnu tzdata -y && sudo apt install build-essential -y && sudo apt install libssl-dev libffi-dev libncurses5-dev zlib1g zlib1g-dev libreadline-dev libbz2-dev libsqlite3-dev make gcc -y && sudo apt install pigz -y && sudo apt install python3 -y && sudo apt install cpio -y && sudo apt install default-jre lld -y
sudo rm -rf /etc/localtime && sudo ln -s /usr/share/zoneinfo/Asia/Jakarta /etc/localtime
- name: Clone Kernel Source
run: |
git clone --depth=1 --recursive https://$USERNAME:$TOKEN@github.com/Tiktodz/android_kernel_asus_sdm636 clo
- name: Building Kernel
run: |
cd ~/clo
curl https://raw.githubusercontent.com/Tiktodz/android_kernel_asus_sdm636/tom/hmp/build.sh > run.sh
bash run.sh