English | δΈζ
First of all, you must be familiar with the entire OpenWrt compilation process, which will make it very easy for you to understand how to use GitHub Actions to compile, even if you have not succeeded. Because in fact, nearly 90% of the local compilation failures are caused by network problems, and we dare not say more about the characteristics of mainland China. The GitHub Actions server is provided by Microsoft Azure and has 10 Gigabit bandwidth, which can greatly improve the success rate of compilation.
- 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.
- 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 searchActions-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.