简体中文 | English
本项目提供基于 GitHub Actions 的自动化内核编译工作流,支持 OnePlus 和 Realme 多款搭载 SM8750 平台的设备。通过高度集成的脚本,实现一键编译包含 (Re)SukiSU、SUSFS、风驰调度 等功能的 OKI 内核。
- 🚀 全自动化编译 - 基于 GitHub Actions,无需本地环境
- 🔧 多种 KSU 支持 - ReSukiSU / SukiSU-Ultra 可选
- 📱 多机型适配 - 支持 10 款 OnePlus/Realme 设备
- ⚡ 性能优化 - 集成完美风驰调度补
- 💾 ccache 缓存 - 智能缓存管理,首次编译使用公共缓存提速 50%,二次编译提速 80%
- 📦 开箱即用 - 自动生成 AnyKernel3 刷入包
| 序号 | 设备名称 | 代号 | 平台 |
|---|---|---|---|
| 1 | 一加 13 | oneplus_13 |
SM8750 |
| 2 | 一加 Ace 5 Pro | oneplus_ace5_pro |
SM8750 |
| 3 | 一加 Ace 6 | oneplus_ace_6 |
SM8750 |
| 4 | 一加 13T | oneplus_13t |
SM8750 |
| 5 | 一加 Pad 2 Pro | oneplus_pad_2_pro |
SM8750 |
| 6 | 一加 Ace5 至尊版 | oneplus_ace5_ultra |
MT6991 |
| 7 | 真我 GT 7 | realme_GT7 |
MT6991 |
| 8 | 真我 GT 7 Pro | realme_GT7pro |
SM8750 |
| 9 | 真我 GT 7 Pro 竞速 | realme_GT7pro_Speed |
SM8750 |
| 10 | 真我 GT 8 | realme_GT8 |
SM8750 |
点击仓库右上角的 Fork 按钮,将本仓库复制到你自己的 GitHub 账户。
- 进入你 Fork 的仓库
- 点击 Actions 标签页
- 选择
Build_oneplus_sm8750工作流 - 点击 Run workflow 按钮
- 填写编译参数
- 等待编译完成(首次构建约12分钟)
- 在 Artifacts 中下载编译产物
⚠️ 注意: 本地脚本需要一定的 Linux 使用经验,推荐新手使用 GitHub Actions 云编译。
- WSL2: Ubuntu 20.04 或更高版本
- 磁盘空间: 至少 50GB(推荐 80GB+)
- 内存: 最低 8GB(推荐 16GB+)
- 网络: 能稳定访问 GitHub
# 1. 克隆仓库
git clone https://github.com/showdo/Build_Oneplus_Realme_Action.git
cd Build_Oneplus_Realme_Action
# 2. 添加执行权限
chmod +x Build_sm8750_local.sh
# 3. 运行脚本
./Build_sm8750_local.sh如果 C 盘空间不足,可将 WSL2 迁移到其他盘:
# 以管理员身份运行 PowerShell
# 1. 查看 WSL 版本
wsl -l -v
# 2. 停止 WSL
wsl --shutdown
# 3. 导出 Ubuntu(替换为你的发行版名称)
wsl --export Ubuntu-20.04 E:/ubuntu.tar
# 4. 注销原发行版
wsl --unregister Ubuntu-20.04
# 5. 导入到新位置
wsl --import Ubuntu-20.04 E:\ubuntu\ E:\ubuntu.tar --version 2
# 6. 设置默认用户
ubuntu2004.exe config --default-user <your_username>项目会自动从 Public_Ccache_SM8750 下载公共缓存,首次编译也能享受加速。
当构建时间超过 8 分钟时,会自动清理旧的 ccache 缓存,避免占用过多 GitHub 存储空间。
- 进入 Actions 页面
- 点击对应的 workflow 运行记录
- 展开各个步骤查看详细输出
- 重点关注报错步骤
[INFO] - 一般信息
[SUCCESS] - 成功完成
[ERROR] - 错误(需立即处理)
- Telegram 频道: @qdykernel
- 酷安主页: @showdo
- GitHub Issues: 提交问题
本项目构建支持来自:
本项目采用 GPL-3.0 许可证。
Copyright (C) 2024 showdo
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
如有问题或建议,请通过以下方式联系:
- Telegram: @qdykernel
- GitHub Issues: 新建 Issue
- 酷安: 私信 @Q1udaoyu
维护状态: 🟢 活跃维护中