diff --git a/.github/workflows/kernel.yml b/.github/workflows/kernel.yml new file mode 100644 index 000000000000..c7652bee67a2 --- /dev/null +++ b/.github/workflows/kernel.yml @@ -0,0 +1,33 @@ +name: Kernel Build CI + +on: + push: + +env: + TOKEN: ${{ secrets.BOT_TOKEN }} + G_TOKEN: ${{ secrets.G_TOKEN }} + RELEASE: 0 + OTA: 0 + CI: 1 + +jobs: + build: + runs-on: ubuntu-latest + container: fedora:latest + + steps: + - name: Setup build environment + run: | + sudo dnf install --assumeyes dtc bc flex bison make autoconf openssl-devel elfutils-libelf-devel unzip zip curl wget gh zstd glibc-devel gcc python2 python3 binutils diffutils + gh auth login --with-token <<< "${G_TOKEN}" + git config --global user.email "cyberknight755@gmail.com" + git config --global user.name "Cyber Knight" + + - name: Clone kernel + run: | + git clone https://github.com/cyberknight777/dragonheart_kernel_oneplus_sm8150 -b rebase --depth=1 kernel + + - name: Compile kernel + run: | + cd kernel + bash kramel.sh img mkzip