bigbugcc/OpenWrts
关于
OpenWRT 固件下载 | OpenWRT Firmware
系统与基础设施实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- +1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.zh-CN.md
原文OpenWrts
OpenWrts 是一个基于 GitHub Actions 的 OpenWrt 云编译仓库。
固件构建列表
固件构建列表会在生成 workflow 时从 configs/ 下的配置片段同步到 manifests/builds.json。定时 workflow 负责计划发布,auto 模式会按 ISO 周奇偶在 LEDE 和 ImmortalWrt 之间轮换。
| 源码 | 设备 ID | 平台 | 风格 | Workflow 状态 | 下载统计 |
|---|---|---|---|---|---|
lede |
x86_64 |
x86_64 generic | standard |
||
lede |
rpi3 |
Raspberry Pi 3B/3B+ | standard |
||
lede |
rpi4 |
Raspberry Pi 4B | standard |
||
lede |
rpi5 |
Raspberry Pi 5 | standard |
||
lede |
rockchip |
R68S、NanoPi R2S/R4S/R5C/R5S、Orange Pi R1 Plus | standard |
||
immortalwrt |
x86_64 |
x86_64 generic | lite |
||
immortalwrt |
rpi3 |
Raspberry Pi 3B/3B+ | lite |
||
immortalwrt |
rpi4 |
Raspberry Pi 4B | lite |
||
immortalwrt |
rpi5 |
Raspberry Pi 5 | lite |
||
immortalwrt |
rockchip |
R68S、NanoPi R2S/R4S/R5C/R5S、Orange Pi R1 Plus | lite |
LuCI 插件列表
LEDE Standard
| 分类 | 插件 |
|---|---|
| 商店与代理 | luci-app-store, luci-app-openclash, luci-app-passwall2, luci-app-ssr-plus |
| 网络 | luci-app-ddns, luci-app-mwan3, luci-app-n2n, luci-app-openvpn, luci-app-softethervpn, luci-app-syncdial, luci-app-upnp, luci-app-wireguard, luci-app-zerotier, luci-app-smartdns |
| 服务 | luci-app-adguardhome, luci-app-docker, luci-app-dockerman, luci-app-filebrowser, luci-app-frpc, luci-app-nfs, luci-app-nps, luci-app-samba4, luci-app-ttyd, luci-app-vsftpd |
| 系统与工具 | luci-app-accesscontrol, luci-app-arpbind, luci-app-autoreboot, luci-app-cifs-mount, luci-app-commands, luci-app-control-timewol, luci-app-diskman, luci-app-filetransfer, luci-app-firewall, luci-app-netdata, luci-app-nlbwmon, luci-app-onliner, luci-app-pushbot, luci-app-qos, luci-app-serverchan, luci-app-usb-printer, luci-app-vlmcsd, luci-app-wol |
| 扩展应用 | luci-app-ipsec-vpnd, luci-app-mentohust, luci-app-oaf, luci-app-qbittorrent_static, luci-app-qbittorrent-simple_dynamic, luci-app-turboacc |
| 主题 | luci-theme-argon, luci-theme-bootstrap, luci-theme-infinityfreedom, luci-theme-material, luci-theme-netgear, luci-theme-neobird |
ImmortalWrt Lite
| 分类 | 插件 |
|---|---|
| 商店与代理 | luci-app-store, luci-app-openclash, luci-app-passwall2, luci-app-ssr-plus |
| 网络 | luci-app-accesscontrol, luci-app-smartdns, luci-app-turboacc, luci-proto-wireguard |
| 服务 | luci-app-docker, luci-app-dockerman, luci-app-filetransfer, luci-app-firewall, luci-app-netdata, luci-app-oaf, luci-app-onliner, luci-app-ttyd |
| 系统默认 | default-settings, default-settings-chn, luci-app-autoreboot |
| 主题 | luci-theme-argon, luci-theme-bootstrap, luci-theme-material |
支持的源码
| 源码标识 | 上游仓库 | 默认分支 | 说明 |
|---|---|---|---|
lede |
https://github.com/coolsnowwolf/lede | master |
Lean LEDE,当前用于 standard 构建 |
immortalwrt |
https://github.com/immortalwrt/immortalwrt | master |
ImmortalWrt,当前用于共用 lite 构建 |
两套源码的 SDK、feeds、LuCI 版本、软件包集合和插件兼容性并不完全一致。高把握可复用片段放在 common 下;同名的源码专属片段会优先生效。
[!WARNING] 不同固件源构建的固件不能混用升级。即使设备和 flavor 名称相同,也不要使用 LEDE 固件对 ImmortalWrt 进行保留配置升级或直接覆盖升级,反向操作同样不支持。需要切换固件源时,请先单独备份必要设置,按照对应设备的 factory/recovery 流程进行全新刷写,再选择性恢复兼容配置;不要恢复另一个固件源生成的完整配置备份。
工作流
| Workflow | 用途 |
|---|---|
schedule-release.yml |
可筛选源码、设备和风格的定时发布。auto 按 ISO 周奇偶在 LEDE 和 ImmortalWrt 之间选择一个源码 |
manual-build.yml |
手动构建入口,可选择源码、设备、风格、分支和是否发布 |
build-openwrt.yml |
reusable workflow,负责构建单个 matrix 项 |
定时 workflow 使用 UTC 时间:
schedule:
- cron: "23 16 * * 6"
约等于 Asia/Shanghai 时区的周日 00:23。
定时构建默认使用 repo=auto、devices=all、flavors=lite。手动运行该定时 workflow 时,devices 和 flavors 支持逗号分隔多选,例如 rpi3,rpi5 和 lite,standard。设备值使用 configs/targets/ 下不带 .config 后缀的配置名。
构建流程
scheduled/manual workflow
-> scripts/openwrts.mjs validate-manifest
-> scripts/openwrts.mjs generate-workflows --check
-> scripts/openwrts.mjs resolve-matrix 生成构建矩阵
-> build-openwrt.yml
-> scripts/prepare-env.sh
-> scripts/clone-source.sh
-> scripts/apply-openwrt.sh system feeds
-> OpenWrt feeds update/install
-> scripts/apply-openwrt.sh packages
-> scripts/compose-config.sh
-> scripts/build.sh
-> 上传 artifact / release
仓库结构
.github/workflows/
build-openwrt.yml reusable 构建 workflow
schedule-release.yml 定时源码轮换发布 workflow
manual-build.yml 手动构建 workflow
manifests/
builds.json 构建矩阵定义
feeds/
common.conf 共用 feeds overlay
<repo>.conf 可选的源码专属 feeds overlay
packages/
lede.sh LEDE 第三方插件
immortalwrt.sh ImmortalWrt 第三方插件
configs/
targets/ 共用 target/device 配置
apps/ 共用和按源码隔离的 LuCI 应用配置
drivers/ 按源码隔离的驱动扩展配置
scripts/
openwrts.mjs Node.js CLI,用于 manifest 校验、矩阵解析和 workflow 生成
prepare-env.sh 安装编译依赖
clone-source.sh 拉取选定的上游源码
apply-openwrt.sh 应用系统默认值、共用/源码专属 feeds 和源码专属第三方插件
compose-config.sh 合成 .config 并执行 make defconfig
build.sh 下载依赖并编译固件
旧的根目录 source.sh、environment.sh、configure.sh 和 package.sh 兼容包装入口已移除。新的自动化应直接调用 scripts/ 下的脚本。
Workflow 生成
GitHub Actions 的 workflow_dispatch 下拉选项是静态 YAML,不能在 Actions UI 打开时动态读取。修改 target、app 或 driver 配置片段后运行:
node scripts\openwrts.mjs generate-workflows
node scripts\openwrts.mjs generate-workflows --check
generate-workflows 会扫描 configs/targets/*.config 下的共用 target,并结合 configs/apps/common/*.config 和对应 configs/apps/<repo>/*.config 片段,更新 manifests/builds.json,再写入 workflow 下拉选项。同名 app 配置优先使用源码专属片段。已有 manifest 元数据,例如 op_name,会被保留,所以首次生成后可以再调整显示名称。
生成后的 workflow 会在 resolve 阶段检查 manifest 和 workflow 选项是否与配置片段保持同步。
缓存策略
新 workflow 使用 actions/cache 缓存 dl 和 .ccache。cache key 包含:
repo + branch + cache_scope + hash(feeds/packages/scripts/configs/manifests)
这样可以避免 LEDE、ImmortalWrt、不同设备和不同固件风格之间混用不兼容缓存。
固件默认设置
- 管理地址:
192.168.10.1 - 用户:
root - 密码:
password
手动构建
进入 GitHub Actions,运行 Manual OpenWrt Build,然后选择:
repo:auto、lede或immortalwrt。auto始终按定时任务的 ISO 周轮换规则选择一个源码。device:all或构建矩阵里的设备 IDflavor:standard、lite或all。默认是repo=lede搭配standard。all表示构建所选 repo/device 下所有匹配的 manifest 条目。branch: 留空使用 manifest 默认分支,也可以填写上游分支upload_release: 是否上传固件到 GitHub Releases
例如,repo=lede、device=all、flavor=lite 会用 configs/apps/common/lite.config 构建所有 LEDE target。如果选择的 repo/device/flavor 组合不存在,矩阵解析会在编译前停止,并提示当前可用的 flavor。
本地矩阵检查
node scripts\openwrts.mjs validate-manifest
node scripts\openwrts.mjs resolve-matrix --repo lede --device x86_64
node scripts\openwrts.mjs resolve-matrix --repo immortalwrt --device all
node scripts\openwrts.mjs resolve-matrix --repo auto
Node.js CLI 只使用 Node 内置模块,不需要执行 npm install。
添加新设备
- target/device 配置统一放在
configs/targets/。 - 在
configs/apps/common/或configs/apps/<repo>/下添加或复用应用配置。 - 如有需要,在
configs/drivers/<repo>/下添加驱动扩展。 - 如果设备需要额外插件,更新
packages/<repo>.sh。 - 运行
node scripts\openwrts.mjs generate-workflows,同步manifests/builds.json和 workflow 下拉选项。 - 如需更友好的发布名称,可以调整
manifests/builds.json中生成的op_name,然后再次运行generate-workflows。 - 运行
node scripts\openwrts.mjs validate-manifest。
截图




致谢
- https://github.com/P3TERX/Actions-OpenWrt
- https://github.com/coolsnowwolf/lede
- https://github.com/immortalwrt/immortalwrt
- https://github.com/jerrykuku/luci-theme-argon
- https://github.com/linkease/istore
License
本项目基于 MIT License 发布。详见 LICENSE。
探索相关项目
加载中…