Git Product home page Git Product logo

actions-openwrt's Introduction

English | 中文

Actions-OpenWrt

LICENSE GitHub Stars GitHub Forks

A template for building OpenWrt with GitHub Actions

Usage

  • Click the Use this template button to create a new repository.
  • Generate .config files using Lean's OpenWrt source code. ( You can change it through environment variables in the workflow file. )
  • Push .config file to the GitHub repository.
  • Select Build OpenWrt on the Actions page.
  • Click the Run workflow button.
  • When the build is complete, click the Artifacts button in the upper right corner of the Actions page to download the binaries.

Tips

  • It may take a long time to create a .config file and build the OpenWrt firmware. Thus, before create repository to build your own firmware, you may check out if others have already built it which meet your needs by simply search Actions-Openwrt in GitHub.
  • Add some meta info of your built firmware (such as firmware architecture and installed packages) to your repository introduction, this will save others' time.

Credits

说明 本项目旨在使用Github的Actions功能实现OpenWrt的云编译,根本上解决本地编译的网络、环境配置问题。 同时大家也能通过配置来增、减插件,打造属于自己的OpenWrt固件,拒绝各种广告固件。 项目基于Lean的LEDE进行编译。

自动化用的是P3TERX项目,项目地址:https://github.com/P3TERX/Actions-OpenWrt 编译的OpenWrt源项目是Lean的LEDE,项目地址:https://github.com/coolsnowwolf/lede

云编译项目主要需修改俩个地方: diy-part1.sh里面添加feeds源,可以使用 https://github.com/kenzok8/openwrt-packages 另一个是.config文件,可以本地自己通过make menuconfig来保存生成或者直接用别人的。 Windows环境下可以简单使用WSL(Windows Subsystem for Linux)来搭建Ubuntu环境(建议20版本以上),此环境的作用主要是用来配置config文件,然后将文件上传到github。

默认登陆IP 192.168.1.1 密码 password

附录:本地编译常见问题 fatal: unable to access 'https://github.com/coolsnowwolf/lede/': gnutls_handshake() failed: The TLS connection was non-properly terminated. 解决方式:

git config --global http.sslVerify "false"

error: RPC failed; curl 18 transfer closed with outstanding read data remaining 解决方案:

git config --global http.postBuffer 524288000

Can't exec "make": No such file or directory at ./scripts/feeds line 22. 解决方案:

sudo apt-get install build-essential subversion libncurses5-dev zlib1g-dev sudo apt-get install gawk gcc-multilib flex git-core gettext libssl-dev

Build dependency: Please install 'unzip' 解决方案:

sudo apt install unzip

fatal: unable to access 'https://git.openwrt.org/feed/telephony.git/': server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none 解决方案:

export GIT_SSL_NO_VERIFY=1

或者

sudo apt-get update sudo apt-get install ca-certificates

:1:10: fatal error: libelf.h: No such file or directory 解决方案:

sudo apt-get install libelf-dev

fatal error: gelf.h: No such file or directory 解决方案:

sudo apt-get install libelf-dev

License

MIT © P3TERX

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.