2024-04-15 01:52:47 +02:00
|
|
|
name: KBuild
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
kb:
|
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2024-12-14 14:04:55 +01:00
|
|
|
uses: https://git.yiffing.dev/Ksawlii/checkout@main
|
2024-04-15 01:52:47 +02:00
|
|
|
- name: Clean
|
2024-12-14 14:04:55 +01:00
|
|
|
uses: https://git.yiffing.dev/Ksawlii/slimhub_actions@main
|
2024-04-15 01:52:47 +02:00
|
|
|
- name: Install tools
|
|
|
|
run: |
|
|
|
|
sudo apt-get update -y &>/dev/null || sudo apt-get update -y &>/dev/null || true
|
|
|
|
sudo apt-get upgrade -y &>/dev/null || sudo apt-get upgrade -y &>/dev/null || true
|
2024-12-14 14:04:55 +01:00
|
|
|
sudo apt-get install flex bison brotli zip zstd tar lz4 cpio xz-utils -y || sudo apt-get install brotli zip zstd tar lz4 cpio xz-utils -y
|
2024-04-15 01:52:47 +02:00
|
|
|
- name: Build
|
|
|
|
run: |
|
2024-12-14 12:54:54 +01:00
|
|
|
rm -rf setup.sh*
|
|
|
|
rm -rf KernelSU*
|
|
|
|
wget https://raw.githubusercontent.com/nitanmarcel/KernelSU-susfs/refs/heads/main/kernel/setup.sh
|
|
|
|
chmod +x setup.sh
|
|
|
|
./setup.sh*
|
|
|
|
rm -rf setup.sh
|
|
|
|
echo "Building without KernelSU..."
|
|
|
|
./kernel_build/build.sh "$(pwd)" || exit 1
|
|
|
|
echo "Building with KernelSU..."
|
|
|
|
./kernel_build/build-ksu.sh "$(pwd)" || exit 1
|
2024-04-15 01:52:47 +02:00
|
|
|
- name: Upload
|
2024-12-14 14:04:55 +01:00
|
|
|
uses: https://git.yiffing.dev/Ksawlii/upload-artifact@main
|
2024-04-15 01:52:47 +02:00
|
|
|
with:
|
|
|
|
name: Kernels_a53x
|
2024-12-14 12:54:54 +01:00
|
|
|
path: kernel_build/FireAsf*
|