Skip to content

Commit

Permalink
.github: Initialize CI
Browse files Browse the repository at this point in the history
- This will utilize GitHub Actions to build the kernel.

Signed-off-by: Cyber Knight <[email protected]>
  • Loading branch information
cyberknight777 committed Jul 23, 2023
1 parent 59a9344 commit b4d53a2
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/kernel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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

steps:
- name: Setup build environment
run: |
sudo apt install device-tree-compiler bc flex bison build-essential unzip zip curl wget gh -y
gh auth login --with-token <<< "${G_TOKEN}"
git config --global user.email "[email protected]"
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

0 comments on commit b4d53a2

Please sign in to comment.