-
通过创建流程文件,在线编译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.07OpenWrt官方平稳版;dev-lean-ledelean的源码)。 -
通过修改
diy-part1.sh文件修改feeds.conf.default配置。默认添加fw876/helloworld。
有能力可以添加包含passwall的lienol-openwrt-package试试。 -
通过修改
diy-part2.sh文件可以自定义默认IP,登陆密码等。按我的需要现在的默认IP为192.168.1.11 -
修改流程触发条件。默认添加两种触发方式:
“Webhook”(给 GitHub API 发送一个repository dispatch event(仓库调度事件) 请求,当 API 接收到请求后就会触发相应的workflow)
以下是一个使用cURL发送请求的例子:
curl -X POST https://api.github.com/repos/:owner/:repo/dispatches \
-H "Accept: application/vnd.github.everest-preview+json" \
-H "Authorization: token ACTIONS_TRIGGER_TOKEN" \
--data '{"event_type": "TRIGGER_KEYWORDS"}'
需要要替换的值:
:owner- 用户名
:repo- 需要触发的 Github Action 所在的仓库名称
ACTIONS_TRIGGER_TOKEN- 带有 repo 权限的 Personal access token
TRIGGER_KEYWORDS- 自定义Webhook事件名称,可以为任意值,Actions 列表中会显示此名称。
“Star”(点击仓库上的Star按钮即可触发GitHub Actions的工作流程,为了避免被其他人点击Star导致的不必要的麻烦,只有仓库所有者,也就是你自己点Star才有效)。 -
在触发工作流程后,默认
SSH_ACTIONS: true在 Actions 页面等待执行到SSH connection to Actions步骤,会出现下面信息:
To connect to this session copy-n-paste the following into a terminal or browser:https://tmate.io/t/Y26QeagDtsPXp2mT6me5cnMRd
-
复制 SSH 连接命令粘贴到终端内执行,或者复制链接在浏览器中打开使用网页终端,登陆云menuconfig。
-
命令:
cd openwrt && make menuconfig -
完成后按快捷键
Ctrl+D或执行exit命令退出,后续编译工作将自动进行。 -
这样比较灵活,可以根据路由器硬件通过云
menuconfig自定义配置固件,不需要再导出.config和上传 -
进阶玩法请看P3TERX的博客中文教程
forked from Lancenas/actions-openwrt-helloworld
-
Notifications
You must be signed in to change notification settings - Fork 0
Actions使用Lean's lede源码编译含helloworld服务固件
License
hrz6976/actions-openwrt-helloworld
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
Actions使用Lean's lede源码编译含helloworld服务固件
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published
Languages
- Shell 100.0%