All Projects → HuaZhuangNan → Actions Build Padavan Openwrt

HuaZhuangNan / Actions Build Padavan Openwrt

Licence: mit
GitHub Action 学习实例 - 自动编译 padavan 和 openWrt

Programming Languages

shell
77523 projects

Labels

Projects that are alternatives of or similar to Actions Build Padavan Openwrt

Qosdocs
Linux TC Qos 智能流控等相关资料,多年来的心血
Stars: ✭ 89 (-33.58%)
Mutual labels:  openwrt
Postinstall
💻 Bash Script to automate post-installation steps
Stars: ✭ 104 (-22.39%)
Mutual labels:  openwrt
Nanopi R2s 2021
基于 Lean&Lienol 源码的 NanoPi R2S 的 OpenWrt 固件。每天自动更新插件和内核,Fusion编译法
Stars: ✭ 122 (-8.96%)
Mutual labels:  openwrt
Vrouter
一个基于 VirtualBox 和 openwrt 构建的项目, 旨在实现 macOS / Windows 平台的透明代理.
Stars: ✭ 1,307 (+875.37%)
Mutual labels:  openwrt
Openwrt V2ray
V2Ray for OpenWrt
Stars: ✭ 1,358 (+913.43%)
Mutual labels:  openwrt
Openwrt Examples
Examples for creating OpenWrt programs&packages.
Stars: ✭ 120 (-10.45%)
Mutual labels:  openwrt
Openwisp Firmware
A OpenWRT based firmware to be used with OpenWISP Manager
Stars: ✭ 86 (-35.82%)
Mutual labels:  openwrt
Easy Build
Collection of Dockerfiles for building embedded software distributions
Stars: ✭ 130 (-2.99%)
Mutual labels:  openwrt
Xunleikuainiaoinshell
[ 迅雷快鸟 Shell 版 ] A Shell Implementation of Kuainiao, Xunlei
Stars: ✭ 102 (-23.88%)
Mutual labels:  openwrt
Luci App Frpc
LuCI support for FRPC
Stars: ✭ 124 (-7.46%)
Mutual labels:  openwrt
Awalwm2m
Awa LWM2M is an implementation of the OMA Lightweight M2M protocol in C.
Stars: ✭ 93 (-30.6%)
Mutual labels:  openwrt
Fast Path Lede Openwrt
PLEASE GO TO NEW OPENWRT TRUNK BASED SFE FIRMWARE ->
Stars: ✭ 96 (-28.36%)
Mutual labels:  openwrt
Ansible Openwisp2 Imagegenerator
Automatically build several openwisp2 firmware images for different organizations while keeping track of their differences
Stars: ✭ 122 (-8.96%)
Mutual labels:  openwrt
Openwrt Packages
Onion Packages Feed for OpenWRT
Stars: ✭ 91 (-32.09%)
Mutual labels:  openwrt
Nanopi R4s
NanoPi R4S Firmware | Lean's & Official OpenWrt | 固件编译
Stars: ✭ 124 (-7.46%)
Mutual labels:  openwrt
K3c
K3C OPENWRT A1/B1/B1G/B2/C1/S1
Stars: ✭ 88 (-34.33%)
Mutual labels:  openwrt
Docker Openwrt
OpenWrt running in Docker
Stars: ✭ 107 (-20.15%)
Mutual labels:  openwrt
Aliddns
aliyun ddns for golang【阿里云DDNS服务,用来将自己的动态IP同步到自己的域名解析服务器,安装方便,配置简单,默认支持Linux和MacOS以后台服务方式持续运行】
Stars: ✭ 136 (+1.49%)
Mutual labels:  openwrt
Gateway Go
🎁GateWay Client for OpenIoTHub[云易连访问内网端口和设备的网关]
Stars: ✭ 127 (-5.22%)
Mutual labels:  openwrt
Luci App Aliddns
OpenWrt/LEDE LuCI for AliDDNS
Stars: ✭ 123 (-8.21%)
Mutual labels:  openwrt

GitHub Action 学习实例 - 自动编译 padavan 和 openWrt

前言

  • 目前本人手上只有这几个设备,所以只测试这几个

    • PSG1218(k2,超频 600,按我的参数编译 16-22 分钟,~7.07mb)
    • NEWIFI3(新三,按我的参数编译大概 28-35 分钟,~25.5mb,集成了 v2 二进制文件和 frp 所以大)
    • G-DOCK(竞斗云 2.0,按我的参数编译大概 3 小时 30 分钟,~57mb(ubi 包)。
    • 编译好的固件最好双清或者 breed,opboot,uboot,清除后刷入,防止修改了配置残余
    • 有关参数看设备的配置文件、sh文件、padavan或者openwrt对应 public.sh 文件
  • 固件按理通用编译,但是还需测试,目前测试了的有,coolsnowwolf(雕大)的 openwrt(还集成了 Lienol 的包和 openclash,在 public.sh 里面),chongshengB(C 大)的 padavan

  • 特别说明,如果不需要编译某个固件删除相应的 yml 文件即可,添加请仔细阅读有关固件的文档

  • 如果有啥问题欢迎提交 Lssues 反馈或者 TG:https://t.me/huazhuangnan邮箱:[email protected]

  • 历史自编译网盘地址:https://pan.baidu.com/s/10_4qsIDBsLracQb_4QK6Gg;提取码:r6ie

  • 恩山: https://www.right.com.cn/forum/?567122

  • B 站(有视频): https://space.bilibili.com/436465779

  • 整理编写不易,喜欢的话右上角给个 star

openwrt 单独参数及功能说明

padavan 单独参数及功能说明

下载编译完成固件

更新日志

编译方法

  • 注:所有固件都是下载的,所以需要编译其他版本的yml去改连接和编译的配置就好
  • Fork 到自己仓库后(按需修改配置文件)
  • 需要哪种方式编译,打开 yml 文件里面的注释就好(就是删除#号)
  • 文件打包完会在 action 的任务里面

监听文件 push 编译(默认编译,需要其他方式,打开注释修改或自己添加就好)

  • 选择按log文件默认的原因

    1. 方便查看管理
    2. 防止多次的push多次编译
    3. 防止不是自己点击 star 之后 Actions 还是会有显示
  • 编译模板 yml 里面也有例子

push:                     # push 操作
  branches:               # 分支
    - master              # 主分支
  # paths:                # 路径
  #   - padavan/*         # 监听padavan目录下所有文件的push操作
  paths:                  # 路径
    - logs/k2.md          # 监听logs目录下 k2.md 的push操作 (默认)

星标 star 编译

  • yml文件打开注释点击 star (星标开始全部编译);依赖这句判断是仓库持有者点击:github.event.repository.owner.id == github.event.sender.id
watch:                     # 监视操作
    types: started         # 点击 star 之后,可以写数组形式,具体可以参考官方文档

定时 schedule 编译

  • 定时编译方法 GitHub 官方文档
  • 编译模板 yml 文件中有个每天北京时间凌晨 3 点编译的例子
schedule:                 # 时间表
  - cron: "0 19 * * *"    # 每天国际时间 19 点,北京时间 3 点执行(北京+8)

目录说明

  |-- .editorconfig     # 编辑规范
  |-- .github           # GitHub 工作目录
  |   |-- workfloms     # 存放 Action  YML文件
  |-- openwrt           # openwrt 有关
  |   |-- backups       # openwrt 文件备份 以及 openwrt 编译模板
  |   |-- public.sh     # 公共的修改执行文件
  |-- padavan           # padavan 有关
  |   |-- backups       # padanvan文件备份 以及 padavan 编译模板
  |   |-- public.sh     # 公共的修改执行文件
  |-- screenshots       # 效果目录

编译结果欣赏图

Action 常用参数说明

  • name 自动构建的名字

  • on 触发条件

    • schedule: # 时间表
      • cron: '0 19 * * *' # 每天国际时间 19 点,北京时间凌晨 3 点执行(北京+8)
    • watch # 监视
      • type: started # 类型:点击了星标
  • env 环境变量

  • jobs 任务

  • build 工作的 id

  • run-on 工作运行的环境平台

  • if 工作运行的判断

  • steps 包含一系列任务步骤

    • name 子任务名
    • user 使用官方的一些库完成一些操作
    • run 运行脚本
    • id 运行 id

参考项目或文章

License

MIT © HuaZhuangNan(花妆男)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].