Coder Social home page Coder Social logo

lancenas / actions-openwrt-helloworld Goto Github PK

View Code? Open in Web Editor NEW
307.0 17.0 1.8K 100 KB

Actions使用Lean's lede源码编译含helloworld服务固件

Home Page: https://mtom.top/archives/798/

License: MIT License

Shell 100.00%
actions openwrt-lede passwall

actions-openwrt-helloworld's Introduction

actions-openwrt-helloworld

LICENSE GitHub Stars GitHub Forks

  • 感谢 P3TERX/Actions-OpenWrtcoolsnowwolf/lede

  • 通过创建流程文件,在线编译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.07 OpenWrt官方平稳版;dev-lean-lede lean的源码)。

  • 通过修改diy-part1.sh文件修改feeds.conf.default配置。默认添加fw876/helloworld
    有能力可以添加包含passwalllienol-openwrt-package试试。

  • 通过修改diy-part2.sh文件可以自定义默认IP,登陆密码等。按我的需要现在的默认IP为192.168.1.11

  • 在 Actions 页面选择Build OpenWrt,然后点击Run Workflow按钮,即可开始编译。(如果需要 SSH 连接则把SSH connection to Actions的值改为true)

  • 在触发工作流程后,默认SSH_ACTIONS: true在 Actions 页面等待执行到SSH connection to Actions步骤,会出现下面信息:


    To connect to this session copy-n-paste the following into a terminal or browser:

    ssh [email protected]

    https://tmate.io/t/Y26QeagDtsPXp2mT6me5cnMRd


  • 复制 SSH 连接命令粘贴到终端内执行,或者复制链接在浏览器中打开使用网页终端,登陆云menuconfig。

  • 命令:cd openwrt && make menuconfig

  • 新手参考OpenWrt MenuConfig设置和LuCI插件选项说明

  • 完成后按快捷键Ctrl+D或执行exit命令退出,后续编译工作将自动进行。

  • 这样比较灵活,可以根据路由器硬件通过云menuconfig自定义配置固件,不需要再导出.config和上传

  • 进阶玩法请看P3TERX的博客中文教程

使用同步.config多流程编译移步Actions-Lean-OpenWrt

actions-openwrt-helloworld's People

Contributors

lancenas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

actions-openwrt-helloworld's Issues

你这脚本有问题的,或者你这介绍有问题的

实际上到了ssh那一步再去看workflow的日志是点不开的,
必须要再那个页面ssh步骤之前就点开详细日志,到了ssh阶段才能看到ssh信息.
然而,说明中并没有注明要在SSH步骤之前打开详细日志.

update这里一直出错

Update feeds47s
##[error]Process completed with exit code 1.
Collecting package info: feeds/luci/modules/luci-mod-failsafe
Collecting package info: feeds/luci/modules/luci-mod-freifunk
Collecting package info: feeds/luci/modules/luci-mod-freifunk-community
Collecting package info: feeds/luci/modules/luci-mod-rpc
Collecting package info: feeds/luci/protocols/luci-proto-3g
Collecting package info: feeds/luci/protocols/luci-proto-ipip
Collecting package info: feeds/luci/protocols/luci-proto-ipv6
Collecting package info: feeds/luci/protocols/luci-proto-ncm
Collecting package info: feeds/luci/protocols/luci-proto-openconnect
Collecting package info: feeds/luci/protocols/luci-proto-ppp
Collecting package info: feeds/luci/protocols/luci-proto-qmi
Collecting package info: feeds/luci/protocols/luci-proto-relay
Collecting package info: feeds/luci/protocols/luci-proto-vpnc
Collecting package info: feeds/luci/protocols/luci-proto-wireguard
Collecting package info: feeds/luci/themes/luci-theme-bootstrap
Collecting package info: feeds/luci/themes/luci-theme-material
Collecting package info: merging...

Collecting package info: donefatal: Invalid revision range 97a4ffcc125611dd5f307d54570373832a73e62d..HEAD
fatal: Invalid revision range 97a4ffcc125611dd5f307d54570373832a73e62d..639f3631e80e9372e9791f5f93343f09241cdda6

Collecting target info: merging...

Collecting target info: doneUpdating feed 'routing' from 'https://git.openwrt.org/feed/routing.git;openwrt-19.07' ...
Cloning into './feeds/routing'...
fatal: unable to access 'https://git.openwrt.org/feed/routing.git/': Failed to connect to git.openwrt.org port 443: Connection timed out
failed.
##[error]Process completed with exit code 1.

action过程出现报错,提示dev-lean-lede无法克隆

Clone source code0s
##[error]Process completed with exit code 128.
Run git clone --depth 1 $REPO_URL -b $REPO_BRANCH openwrt
Cloning into 'openwrt'...
warning: Could not find remote branch dev-lean-lede to clone.
fatal: Remote branch dev-lean-lede not found in upstream origin
##[error]Process completed with exit code 128.

这个才是小白值得拥有的脚本,简单,轻松,太感谢Lancenas了。

有关SSH不跳出来的问题,可以同时打开EDGE和chrome浏览器,到那个界面,基本可以万无一失;
其他选择makemenuconfig,其实就是选择型号,前面三行;
luci-application,里面选择你需要的就可以了;
我编译好后,进入的IP是192.168.1.11;
实在没啥说的了,只能说做的太好,这个action。

给比我更小白的一点建议
ssh后进入,cd openwrt
make menuconfig
有时候会跳出红色代码(在SSH端),很恐怖,遇到的话您就:
1)退出menuconfig,别设置啥save,回到ssh界面
2)rm -rf tmp
3)rm -f .config 上面两个删除编译配置文件和临时文件了
4)make menuconfig 再跑一次,我反正没遇到那红色代码报错了
继续操作,选择型号和luci application。
喝杯咖啡,享受Lancenas给我们的杰作。

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.