-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- This will utilize GitHub Actions to build the kernel. Signed-off-by: Cyber Knight <[email protected]>
- Loading branch information
1 parent
59a9344
commit 2e582d4
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
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 |