前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >使用GitHub Actions云编译LEDE固件

使用GitHub Actions云编译LEDE固件

原创
作者头像
jcjyxjs
修改2021-09-06 10:21:19
1.5K0
修改2021-09-06 10:21:19
举报
文章被收录于专栏:毫无作为毫无作为

点击Use this template按钮,创建repo。然后给该repo启用Actions功能。

Use this template

项目GitHub地址:

代码语言:javascript
复制
https://github.com/P3TERX/Actions-OpenWrt

编辑diy-part1.sh文件,可以更改固件是XXRPlus还是Passwall,想用什么就给倒数两行其中一行取消注释就生效。

代码语言:javascript
复制
#!/bin/bash
#
# Copyright (c) 2019-2020 P3TERX <https://p3terx.com>
#
# This is free software, licensed under the MIT License.
# See /LICENSE for more information.
#
# https://github.com/P3TERX/Actions-OpenWrt
# File name: diy-part1.sh
# Description: OpenWrt DIY script part 1 (Before Update feeds)
#

# Uncomment a feed source
#sed -i 's/^#\(.*helloworld\)/\1/' feeds.conf.default

# Add a feed source
#echo 'src-git helloworld https://github.com/fw876/helloworld' >>feeds.conf.default
#echo 'src-git passwall https://github.com/xiaorouji/openwrt-passwall' >>feeds.conf.default

编辑diy-part2.sh文件,修改最后一行可以更改固件默认后台地址。这个无关紧要反正在shell里面也可以通过vi etc/config/network命令更改。

代码语言:javascript
复制
#!/bin/bash
#
# Copyright (c) 2019-2020 P3TERX <https://p3terx.com>
#
# This is free software, licensed under the MIT License.
# See /LICENSE for more information.
#
# https://github.com/P3TERX/Actions-OpenWrt
# File name: diy-part2.sh
# Description: OpenWrt DIY script part 2 (After Update feeds)
#

# Modify default IP
#sed -i 's/192.168.1.1/192.168.50.5/g' package/base-files/files/bin/config_generate

然后进入actions,选Build OpenWrt任务,单击Run workflow,可以选择分支和是否启用SSH,默认是false,改成true就可以使用SSH功能,最后运行即可。

希望本文可以帮到你。

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档