Skip to content

showdo/Build_Oneplus_Realme_Action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

187 Commits
 
 
 
 
 
 

Repository files navigation

OnePlus/Realme SM8750 内核构建项目

简体中文 | English

GitHub Telegram 酷安|主页 Workflow Status


📖 项目简介

本项目提供基于 GitHub Actions 的自动化内核编译工作流,支持 OnePlusRealme 多款搭载 SM8750 平台的设备。通过高度集成的脚本,实现一键编译包含 (Re)SukiSUSUSFS风驰调度 等功能的 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

🎯 快速开始

方式一:GitHub Actions 云编译(推荐)

步骤 1. Fork 本仓库

点击仓库右上角的 Fork 按钮,将本仓库复制到你自己的 GitHub 账户。

步骤 2. 运行工作流

  1. 进入你 Fork 的仓库
  2. 点击 Actions 标签页
  3. 选择 Build_oneplus_sm8750 工作流
  4. 点击 Run workflow 按钮
  5. 填写编译参数
  6. 等待编译完成(首次构建约12分钟)
  7. Artifacts 中下载编译产物

方式二:本地 WSL2 编译

⚠️ 注意: 本地脚本需要一定的 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

WSL2 磁盘迁移教程(可选)

如果 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 存储空间。


日志分析

查看编译日志

  1. 进入 Actions 页面
  2. 点击对应的 workflow 运行记录
  3. 展开各个步骤查看详细输出
  4. 重点关注报错步骤

关键日志标记

[INFO]    - 一般信息
[SUCCESS] - 成功完成
[ERROR]   - 错误(需立即处理)

🔗 相关资源

相关项目

社区支持

感谢

本项目构建支持来自:


📜 许可证

本项目采用 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/>.

📈 项目统计

Star History Chart


📞 联系方式

如有问题或建议,请通过以下方式联系:


维护状态: 🟢 活跃维护中

About

Build the (Re)SukiSU kernel for OnePlus/Realme

Topics

Resources

Stars

Watchers

Forks

Contributors