Skip to content

Automatic unattended weekly builds of the current OpenWrt development master branch

License

Notifications You must be signed in to change notification settings

ocean521/Actions-OpenWrt-Nginx

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Actions OpenWrt Snapshot With Nginx

license PRs Welcome Issue Welcome Release Version Contact Me AutoBuild

Telegram

特色:

  • Cutting edge,openwrt官方master分支版本,内核升级到5.4. 与官方最新源码同步.

  • 原生极致纯净,固件默认只包含基础上网功能,后台在线选装插件,自建插件仓库囊括了市面上主流开源插件,系统升级不丢失插件和配置.

  • 性能,友好度,易用性,插件,以及针对国内特殊环境等的自定义优化

  • uhttpd替换为nginx,大大增加可玩性(只针对X64设备):

    • Nginx+PHP+MariaDB, 用于搭建FileRun,可道云等云盘,建站等.
    • 通过nginx实现Webdav 自建共享同步网盘神器
    • nginx反向代理 实现后台每个页面与服务都可通过自定义域名访问
  • 内置AdguardHome搭配SmartDNS综合优化方案, 开箱即用,实现恶意网站过滤+区分国内外域名解析加速+ 防污染+ DNS优选 (需在后台安装luci-app-adguardhome和luci-app-smartdns,K2P只需安装luci-app-smartdns)

  • 无需专业知识,无需linux服务器,人人皆可通过云编译定制编译自己的专属固件.

  • 持续更新, 每周日零点定时自动云编译更新固件,不用再担心因停更而需更换固件.

  • SSL兼容,可同时使用http IP访问和绑定域名开启https访问(只针对X64设备)

固件下载 Releases,每周日更新固件.

后台入口 10.0.0.1  (若后台无法打开,请插拔交换wan,lan网线顺序.)

默认密码 root

第一次使用请采用全新安装,避免出现升级失败以及其他一些可能的Bug.

云编译需要 在此 创建个token,然后在此仓库Settings->Secrets中添加个名字为REPO_TOKEN的Secret,填入token值,否者无法release

在仓库Settings->Secrets中分别添加 PPPOE_USERNAME, PPPOE_PASSWD 可设置默认拨号账号密码.

Secrets中添加 SCKEY 可通过Server酱 推送编译结果到微信

Secrets中添加 TELEGRAM_BOT_URL 可推送编译结果到Telegram Bot. 获取机器人

fork后点击右上角的Star按钮开始编译

diy云编译教程: Read the details in my blog (in Chinese) | 中文教程

默认插件包含:

  • Opkg 软件包管理
  • UPNP 自动端口转发
  • Turbo ACC 网络加速

其他插件请自行在 后台->软件包 中安装,系统升级不会丢失插件.每次系统升级完成连接网络后,会自动安装所有已自选安装的插件.

默认后台地址 10.0.0.1, 密码 root

X64设备请分配不低于800M 的磁盘空间.

请分配不低于800M 的内存和磁盘空间.

如何在本地使用此项目编译自己需要的 OpenWrt 固件

注意:

  1. 要用 root 用户 git 和编译!!!
  2. 国内用户编译前请准备好梯子,使用大陆白名单或全局模式

编译命令如下:

  1. 首先装好 Ubuntu 64bit,推荐 Ubuntu 18 LTS x64

  2. 命令行输入 sudo apt-get update ,然后输入 sudo apt-get -y install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch python2.7 unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs gcc-multilib g++-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint device-tree-compiler ccache xsltproc rename antlr3 gperf curl

  3. 首次编译执行脚本(以x64为例):

#!/bin/bash
rm -Rf openwrt Actions-OpenWrt-Nginx
git clone https://github.com/openwrt/openwrt
git clone https://github.com/garypang13/Actions-OpenWrt-Nginx
cp -Rf Actions-OpenWrt-Nginx/* openwrt/
cd openwrt
mv x86_64/feeds.conf .
./scripts/feeds update -a
if [ -n "$(ls -A "common/files" 2>/dev/null)" ]; then
	cp -rf common/files files
fi
if [ -n "$(ls -A "x86_64/files" 2>/dev/null)" ]; then
	cp -rf x86_64/files/* files/
fi
if [ -f "common/diy.sh" ]; then
	(
		chmod +x common/diy.sh
		/bin/bash "common/diy.sh"
	)
fi
if [ -f "x86_64/diy.sh" ]; then
	(
		chmod +x x86_64/diy.sh
		/bin/bash "x86_64/diy.sh"
	)
fi
if [ -f "common/default-settings" ]; then
	cp -f common/default-settings package/*/*/default-settings/files/zzz-default-settings
fi
if [ -f "x86_64/default-settings" ]; then
	cp -f x86_64/default-settings package/*/*/default-settings/files/zzz-default-settings
fi
if [ -n "$(ls -A "common/diy" 2>/dev/null)" ]; then
	cp -Rf common/diy/* ./
fi
if [ -n "$(ls -A "x86_64/diy" 2>/dev/null)" ]; then
	cp -Rf x86_64/diy/* ./
fi
if [ -n "$(ls -A "common/patches" 2>/dev/null)" ]; then
	find "common/patches" -type f -name '*.patch' | xargs -i git apply {}
fi
if [ -n "$(ls -A "x86_64/patches" 2>/dev/null)" ]; then
	find "x86_64/patches" -type f -name '*.patch' | xargs -i git apply {}
fi
mv x86_64/.config .config
make defconfig
  1. 二次编译执行脚本
#!/bin/bash
rm -Rf Actions-OpenWrt-Nginx && git clone https://github.com/garypang13/Actions-OpenWrt-Nginx
cp -Rf Actions-OpenWrt-Nginx/* openwrt/
cd openwrt
rm -Rf feeds package
[ -f ".config" ] && mv .config .config.bak
svn co https://github.com/openwrt/openwrt/trunk/package
git fetch --all
git reset --hard origin/master
git pull
./scripts/feeds update -a
if [ -n "$(ls -A "common/files" 2>/dev/null)" ]; then
	cp -rf common/files files
fi
if [ -n "$(ls -A "x86_64/files" 2>/dev/null)" ]; then
	cp -rf x86_64/files/* files/
fi
if [ -f "common/diy.sh" ]; then
	(
		chmod +x common/diy.sh
		/bin/bash "common/diy.sh"
	)
fi
if [ -f "x86_64/diy.sh" ]; then
	(
		chmod +x x86_64/diy.sh
		/bin/bash "x86_64/diy.sh"
	)
fi
if [ -n "$(ls -A "common/diy" 2>/dev/null)" ]; then
	cp -Rf common/diy/* ./
fi
if [ -n "$(ls -A "x86_64/diy" 2>/dev/null)" ]; then
	cp -Rf x86_64/diy/* ./
fi
if [ -f "common/default-settings" ]; then
	cp -f common/default-settings package/*/*/default-settings/files/zzz-default-settings
fi
if [ -f "x86_64/default-settings" ]; then
	cp -f x86_64/default-settings package/*/*/default-settings/files/zzz-default-settings
fi
if [ -n "$(ls -A "common/patches" 2>/dev/null)" ]; then
	find "common/patches" -type f -name '*.patch' | xargs -i git apply {}
fi
if [ -n "$(ls -A "x86_64/patches" 2>/dev/null)" ]; then
	find "x86_64/patches" -type f -name '*.patch' | xargs -i git apply {}
fi
[ -f ".config.bak" ] && mv .config.bak .config || mv x86_64/.config .config
make defconfig
  1. 如需修改默认配置比如定制插件等,请执行 make menuconfig

  2. 执行 make -j8 download v=s 下载dl库

  3. 执行 make -j$(($(nproc)+1)) || make -j1 V=s 即可开始编译你要的固件了。

LICENSE GitHub Stars GitHub Forks

Build OpenWrt using GitHub Actions

Usage

  • Sign up for GitHub Actions
  • Fork this GitHub repository
  • click the Star button, and the build will starts automatically.Progress can be viewed on the Actions page.
  • When the build is complete, click the Artifacts button in the upper right corner of the Actions page to download the binaries.

Acknowledgments

About

Automatic unattended weekly builds of the current OpenWrt development master branch

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 79.3%
  • CSS 7.7%
  • HTML 6.7%
  • Makefile 6.3%