Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
akzzy authored Apr 30, 2023
1 parent 7204804 commit 92ddbb1
Showing 1 changed file with 37 additions and 23 deletions.
60 changes: 37 additions & 23 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,43 @@
name: KSU Build
name: Build Kernel

on:
push:
branches: thirteen
on: [push]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
arch: [arm64]

steps:
- name: Checkout kernel source
uses: actions/checkout@v2

- name: Checkout zipper
uses: actions/checkout@v2
with:
repository: lemniskett/AnyKernel3
path: zipper

- name: Android kernel build
uses: lemniskett/android-kernel-actions@master
id: build
env:
NAME: Dark-Ages-Último
with:
arch: arm64
compiler: proton-clang/master
defconfig: b1c1_defconfig
image: Image.gz-dtb
- uses: actions/checkout@v2

- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y git-core gnupg flex bison gperf build-essential \
zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 \
lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache \
libgl1-mesa-dev libxml2-utils xsltproc unzip
- name: Download Toolchain
run: |
wget https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9.tar.gz
tar -xzf aarch64-linux-android-4.9.tar.gz
- name: Configure Kernel
run: |
export ARCH=arm64
export CROSS_COMPILE=$(pwd)/aarch64-linux-android-4.9/bin/aarch64-linux-android-
make b1c1_defconfig
- name: Build Kernel
run: |
export ARCH=arm64
export CROSS_COMPILE=$(pwd)/aarch64-linux-android-4.9/bin/aarch64-linux-android-
make -j$(nproc) <kernel_image>
- name: Generate Boot Image
run: |
mkbootimg --kernel arch/arm64/boot/Image --ramdisk ramdisk.img --output boot.img

0 comments on commit 92ddbb1

Please sign in to comment.