Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 25 additions & 33 deletions .github/workflows/Build Kernel OnePlus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
inputs:
FILE:
type: choice
description: "配置文件"
description: "配置文件//Configuration file"
required: true
default: oneplus_ace2_pro_b
options:
Expand All @@ -18,7 +18,6 @@ on:
- oneplus_11r_b
- oneplus_ace2_b
- oneplus_pad_lite_b
- oneplus_pad_lite_Canary_b
- oneplus_pad_mt6983_b
- oneplus_ace_2v_b
- oneplus_ace_pro_v
Expand Down Expand Up @@ -56,30 +55,23 @@ on:
- oneplus_turbo_6
- oneplus_nord_6
- oneplus_ace_6t
- oneplus_ace_6t_Canary
- oneplus_15r
- oneplus_15r_Canary
- oneplus_15
- oneplus_15_Canary
- oneplus_15t
- oneplus_15t_Canary
- oneplus_pad_3_pro
- oneplus_pad_3_pro_Canary
- oneplus_pad_4
- oneplus_pad_4_Canary
- oneplus_ace6_ultra
- oneplus_ace6_ultra_Canary
MANAGER_SOURCE:
type: choice
description: "管理器调用方向"
description: "管理器调用方向//Manager download source"
required: true
default: MD3
options:
- MD3
- MD3_SPOOF
SUSFS_CI:
type: choice
description: "SUSFS模块下载调用方向"
description: "SUSFS模块下载调用方向//SUSFS module branch"
required: true
default: N/A
options:
Expand All @@ -88,7 +80,7 @@ on:
- N/A
KPM:
type: choice
description: "内核模块实现方式"
description: "内核模块实现方式//Kernel module implementation method"
required: true
default: N/A
options:
Expand All @@ -97,96 +89,96 @@ on:
- N/A
SUSFS_META:
type: string
description: "回退SUSFS(输入哈希或次数或-1关闭)"
description: "回退SUSFS(输入哈希或次数或-1关闭)//Rollback SUSFS (Enter commit hash, count, or -1 to disable)"
required: false
default: ""
DYNAMIC_REPO:
type: string
description: "动态清单仓库所有者"
description: "动态清单仓库所有者//Manifest repository owner"
required: true
default: "Numbersf"
BUILD_TIME:
type: string
description: "自定义构建时间(输入F使用UTCT或-1关闭)"
description: "自定义构建时间(输入F使用UTCT或-1关闭)//Custom build time (Enter F to use UTCT, or -1 to disable)"
required: false
default: "Fri Dec 12 11:37:03 UTC 2025"
KSU_META:
type: string
description: "分支名(必填)/自定义版本标识(留空不修改)/回退分支提交哈希版本(留空不修改)"
description: "分支名(必填)/自定义版本标识(留空不修改)/回退分支提交哈希版本(留空不修改)//Branch name (Required) / Custom version identifier (Leave blank to not modify) / Rollback branch commit hash version (Leave blank to not modify)"
required: false
default: "main/Numbersf/"
LZ4_UPDATE:
type: boolean
description: "是否升级LZ4到上游最新?"
description: "是否升级LZ4到上游最新?//Upgrade LZ4 to the latest upstream?"
required: true
default: false
ZRAM:
type: string
description: "ZRAM(0关闭1开启)/算法名/大小"
description: "ZRAM(0关闭1开启)/算法名/大小//ZRAM (0: disable, 1: enable) / Algorithm name / Size"
required: true
default: "0/lz4kd/8589934592"
SUFFIX:
type: string
description: "自定义内核后缀(不输入使用RAND_STR或-1关闭)"
description: "自定义内核后缀(不输入使用RAND_STR或-1关闭)//Custom kernel suffix (Leave blank to use RAND_STR, or -1 to disable)"
required: false
default: ""
RESUBLEVEL:
description: "自定义内核等级欺骗(SUBLEVEL)"
description: "自定义内核等级欺骗(SUBLEVEL)//Custom kernel SUBLEVEL spoofing"
required: false
default: ""
FAST_BUILD:
type: boolean
description: "是否启用极速构建?"
description: "是否启用极速构建?//Enable ultra-fast build?"
required: true
default: true
LSM_BBG:
type: boolean
description: "是否启用关键分区写入保护模块(BBG)?"
description: "是否启用关键分区写入保护模块(BBG)?//Enable critical partition write protection module (BBG)?"
required: true
default: true
NETFILTER:
type: boolean
description: "是否启用网络功能拓展(NETFILTER)?"
description: "是否启用网络功能拓展(NETFILTER)?//Enable network feature extensions (NETFILTER)?"
required: true
default: true
CCM:
type: boolean
description: "是否启用网络拥塞控制与管理机制(BBR+ECN)?"
description: "是否启用网络拥塞控制与管理机制(BBR+ECN)?//Enable network congestion control and management mechanism (BBR+ECN)?"
required: true
default: true
UNICODE_BYPASS:
type: boolean
description: "是否添加Unicode不可见字码点绕过读取漏洞修复?"
description: "是否添加Unicode不可见字码点绕过读取漏洞修复?//Add patch for Unicode invisible code point read bypass vulnerability?"
required: true
default: false
SCHED_HMBIRD:
type: boolean
description: "是否添加风驰驱动1.0?"
description: "是否添加风驰驱动1.0?//Add Fengchi (HMBIRD) Driver 1.0?"
required: true
default: false
DROID_SPACES:
type: boolean
description: "是否添加轻量级Linux容器支持(DroidSpaces)?"
description: "是否添加轻量级Linux容器支持(DroidSpaces)?//Add lightweight Linux container support (DroidSpaces)?"
required: true
default: false
RE_KERNEL:
type: boolean
description: "是否添加Re-Kernel?"
description: "是否添加Re-Kernel?//Add Re-Kernel?"
required: true
default: false
SUSFS_DEV:
type: boolean
description: "是否拉取SUSFS-DEV分支?"
description: "是否拉取SUSFS-DEV分支?//Pull the SUSFS-DEV branch?"
required: true
default: false
SPACE_NOCLEAN:
type: boolean
description: "是否停用空间清扫?"
description: "是否停用空间清扫?//Disable workspace cleaning?"
required: true
default: false
BUILD_NOCACHE:
type: boolean
description: "是否停用此次缓存?"
description: "是否停用此次缓存?//Disable caching for this build?"
required: true
default: false

Expand Down Expand Up @@ -546,6 +538,7 @@ jobs:

echo "使用$MANIFEST_REPO/$MANIFEST_REPO_NAME($MANIFEST_BRANCH)初始化仓库..."
repo init -u "$BASE_URL" -b "$MANIFEST_BRANCH" -m "${FILE}.xml" --depth=1 --no-clone-bundle --no-tags
sed -i -e '/prebuilts\/asuite"/{/ks-kernel\.lnx\.5\.0\.r3-rel/d}' -e '/tools\/tradefederation\/prebuilts"/{/ks-kernel\.lnx\.5\.0\.r3-rel/d}' ".repo/manifests/${FILE}.xml"
repo sync -c -j$(nproc) --no-clone-bundle --no-tags --force-sync

KERNEL_REPOS=""
Expand Down Expand Up @@ -1035,8 +1028,7 @@ jobs:
sed -i '/endmenu/i source "drivers/rekernel/Kconfig"' drivers/Kconfig
sed -i '$a \#Re-Kernel Support\nobj-$(CONFIG_REKERNEL) += rekernel/' drivers/Makefile
mkdir -p drivers/rekernel
cp ${RE_DIR}/rekernel.c ${RE_DIR}/rekernel.h ${RE_DIR}/Makefile ${RE_DIR}/Kconfig drivers/rekernel/
sed -i "s|^\s*//\s*#define KERNEL_${KERNEL_SHORT_PATCH_VERSION}|\#define KERNEL_${KERNEL_SHORT_PATCH_VERSION}|" drivers/rekernel/rekernel.h
cp -r "${RE_DIR}"/* drivers/rekernel/

- name: Apply DROID_SPACES
env:
Expand Down
2 changes: 1 addition & 1 deletion README-en.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

# Action-Build

<img src="https://readme-typing-svg.herokuapp.com?font=Meslo+Nerd+Font&size=32&duration=2800&pause=2000&color=A855F7&center=true&vCenter=true&width=940&lines=Welcome+to+Action+Build!;Build+Kernels+For+All+OnePlus+Devices;Your+Device,+Your+Rules!;更高效+更全面+更快速+更稳定+全自动化">
<img src="https://readme-typing-svg.demolab.com?font=Meslo+Nerd+Font&size=32&duration=2800&pause=2000&color=A855F7&center=true&vCenter=true&width=940&lines=Welcome+to+Action+Build!;Build+Kernels+For+All+OnePlus+Devices;Your+Device,+Your+Rules!;%E6%9B%B4%E9%AB%98%E6%95%88+%E6%9B%B4%E5%85%A8%E9%9D%A2+%E6%9B%B4%E5%BF%AB%E9%80%9F+%E6%9B%B4%E7%A8%B3%E5%AE%9A+%E5%85%A8%E8%87%AA%E5%8A%A8%E5%8C%96">

Prohibit the promotion of forked repositories with **no modifications**; see [LICENSE](LICENSE)
<details>
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

# Action-Build

<img src="https://readme-typing-svg.herokuapp.com?font=Meslo+Nerd+Font&size=32&duration=2800&pause=2000&color=A855F7&center=true&vCenter=true&width=940&lines=Welcome+to+Action+Build!;Build+Kernels+For+All+OnePlus+Devices;Your+Device,+Your+Rules!;更高效+更全面+更快速+更稳定+全自动化">
<img src="https://readme-typing-svg.demolab.com?font=Meslo+Nerd+Font&size=32&duration=2800&pause=2000&color=A855F7&center=true&vCenter=true&width=940&lines=Welcome+to+Action+Build!;Build+Kernels+For+All+OnePlus+Devices;Your+Device,+Your+Rules!;%E6%9B%B4%E9%AB%98%E6%95%88+%E6%9B%B4%E5%85%A8%E9%9D%A2+%E6%9B%B4%E5%BF%AB%E9%80%9F+%E6%9B%B4%E7%A8%B3%E5%AE%9A+%E5%85%A8%E8%87%AA%E5%8A%A8%E5%8C%96">

禁止宣传**没有任何修改**的`fork`仓库,详见[LICENSE](LICENSE)
<details>
Expand Down