Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lancenas/actions-openwrt-helloworld

Actions使用Lean's lede源码编译含helloworld服务固件
https://github.com/lancenas/actions-openwrt-helloworld

actions openwrt-lede passwall

Last synced: 3 days ago
JSON representation

Actions使用Lean's lede源码编译含helloworld服务固件

Awesome Lists containing this project

README

        

# actions-openwrt-helloworld

[![LICENSE](https://img.shields.io/github/license/mashape/apistatus.svg?style=flat-square&label=LICENSE)](https://github.com/Lancenas/actions-openwrt-helloworld/blob/master/LICENSE)
![GitHub Stars](https://img.shields.io/github/stars/Lancenas/actions-openwrt-helloworld.svg?style=flat-square&label=Stars&logo=github)
![GitHub Forks](https://img.shields.io/github/forks/Lancenas/actions-openwrt-helloworld.svg?style=flat-square&label=Forks&logo=github)

- **感谢** [P3TERX/Actions-OpenWrt](https://github.com/P3TERX/Actions-OpenWrt)和[coolsnowwolf/lede](https://github.com/coolsnowwolf/lede)
- 通过创建流程文件,在线编译helloworld服务固件;
- 第一代passwall源码完全停止开发(开源源码已经移除),基于vuejs脚本语言、焕新UI设计的第二代passwall由Lienol等大神们在私有库闭源开发中,看情况和心情,只有极小可能性以后某天开源,不要过分期待。
- 修改流程文件`REPO_URL:` 不同库地址(默认lean的`https://github.com/coolsnowwolf/lede.git`或Lienol的`https://github.com/Lienol/openwrt`);`REPO_BRANCH:` 不同分支 (以Lienol OpenWrt源码为例分支`dev-master` 激进;`dev-19.07` OpenWrt官方平稳版;`dev-lean-lede` lean的源码)。
- 通过修改`diy-part1.sh`文件修改`feeds.conf.default`配置。默认添加`fw876/helloworld`。
有能力可以添加包含`passwall`的`lienol-openwrt-package`试试。
- 通过修改`diy-part2.sh`文件可以自定义默认IP,登陆密码等。按我的需要现在的默认IP为192.168.1.11
- 在 Actions 页面选择Build OpenWrt,然后点击Run Workflow按钮,即可开始编译。(如果需要 SSH 连接则把SSH connection to Actions的值改为true)
- 在触发工作流程后,默认`SSH_ACTIONS: true`在 Actions 页面等待执行到`SSH connection to Actions`步骤,会出现下面信息:
***
`To connect to this session copy-n-paste the following into a terminal or browser:`

`ssh [email protected]`

`https://tmate.io/t/Y26QeagDtsPXp2mT6me5cnMRd`
***
- 复制 SSH 连接命令粘贴到终端内执行,或者复制链接在浏览器中打开使用网页终端,登陆云menuconfig。
- 命令:`cd openwrt && make menuconfig`
- 新手参考[OpenWrt MenuConfig设置和LuCI插件选项说明](https://mtom.top/archives/827/)
- 完成后按快捷键`Ctrl+D`或执行`exit`命令退出,后续编译工作将自动进行。
- 这样比较灵活,可以根据路由器硬件通过云`menuconfig`自定义配置固件,不需要再导出`.config`和上传
- 进阶玩法请看P3TERX的博客[中文教程](https://p3terx.com/archives/build-openwrt-with-github-actions.html)
### 使用同步`.config`多流程编译移步[Actions-Lean-OpenWrt](https://github.com/Lancenas/Actions-Lean-OpenWrt)