-
Notifications
You must be signed in to change notification settings - Fork 16
66 lines (52 loc) · 2.01 KB
/
cloud.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: (Cloud)Kernel Builder Xiaomi 10 Ultra
on:
workflow_dispatch:
push:
schedule:
- cron: 0 0 * * 1
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout zipper
uses: actions/checkout@v2
with:
repository: lemniskett/AnyKernel3
path: zipper
- name: Integrate KernelSU
run: |
sudo apt update && sudo apt upgrade
sudo apt install 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 libgl1-mesa-dev libxml2-utils xsltproc unzip bc
git clone https://github.com/CoolestEnoch/xiaomi-10-ultra-kernel
mv xiaomi-10-ultra-kernel source
cd source
sudo cp ./libdebuginfod.so.1 /usr/lib
sudo chmod 777 /usr/lib/libdebuginfod.so.1
echo "[+] Append kernel params to kprobes"
echo "CONFIG_KPROBES=y" >> arch/arm64/configs/vendor/bengal-perf_defconfig
echo "CONFIG_HAVE_KPROBES=y" >> arch/arm64/configs/vendor/bengal-perf_defconfig
echo "CONFIG_KPROBE_EVENTS=y" >> arch/arm64/configs/vendor/bengal-perf_defconfig
git clone https://github.com/tiann/KernelSU
cd KernelSU
git stash && git pull
cd ../
cp -r KernelSU/kernel drivers/kernelsu
echo "[+] Add kernel su driver to Makefile"
echo "obj-y += kernelsu/" >> drivers/Makefile
echo "ccflags-y += -std=gnu11" >> drivers/kernelsu/Makefile
echo "[+] Done."
- name: Android kernel build
uses: lemniskett/android-kernel-actions@master
id: build
env:
KERNEL_PATH: source
with:
arch: arm64
compiler: proton-clang/master/binutils
defconfig: cas_defconfig
image: Image
- name: Upload Build
uses: actions/upload-artifact@v3
with:
name: Image
path: /home/runner/work/kernelsu-xiaomi-cas-online/kernelsu-xiaomi-cas-online/zipper