@@ -51,10 +51,38 @@ jobs:
5151 with :
5252 name : luci-theme-argon
5353 path : luci-theme-argon.tar.gz
54+
55+ # luci app netdata has some bugs, so just not use it for now!
56+ build_luci_app_netdata :
57+ name : Build Luci App Netdata
58+ runs-on : ubuntu-latest
59+ container :
60+ image : openwrtorg/sdk:x86_64-master
61+ options : --user root
62+ defaults :
63+ run :
64+ shell : bash
65+ steps :
66+ - uses : actions/checkout@v3
67+ - name : Run Make
68+ run : |
69+ export VOLUME_HOME=$(pwd)
70+ cd /home/build/openwrt
71+ sudo -u build git clone https://github.com/sirpdboy/luci-app-netdata package/luci-app-netdata
72+ sudo -u build ./scripts/feeds update -a
73+ sudo -u build ./scripts/feeds install -a
74+ sudo -u build make defconfig
75+ sudo -u build make package/luci-app-netdata/compile V=s -j1
76+ ls -alh bin/packages/x86_64/base/
77+ tar zcvf $VOLUME_HOME/luci-app-netdata.tar.gz bin/packages/x86_64/base/luci-app-netdata*.ipk
78+ - uses : actions/upload-artifact@v3
79+ with :
80+ name : luci-app-netdata
81+ path : luci-app-netdata.tar.gz
5482
5583 build_image :
5684 name : Build Image
57- needs : [build_passwall, build_theme_argon]
85+ needs : [build_passwall, build_theme_argon, build_luci_app_netdata ]
5886 runs-on : ubuntu-latest
5987 container :
6088 image : openwrtorg/imagebuilder:x86-64-master
6997 - uses : actions/download-artifact@v3
7098 with :
7199 name : luci-theme-argon
100+ - uses : actions/download-artifact@v3
101+ with :
102+ name : luci-app-netdata
72103 - name : Prepare Passwall
73104 run : |
74105 export VOLUME_HOME=$(pwd)
@@ -87,6 +118,15 @@ jobs:
87118 tar zxvf luci-theme-argon.tar.gz
88119 rm luci-theme-argon.tar.gz
89120 popd
121+ - name : Prepare Netdata
122+ run : |
123+ export VOLUME_HOME=$(pwd)
124+ cd /home/build/openwrt
125+ mv $VOLUME_HOME/luci-app-netdata.tar.gz packages
126+ pushd packages
127+ tar zxvf luci-app-netdata.tar.gz
128+ rm luci-app-netdata.tar.gz
129+ popd
90130 - name : Debug Print
91131 run : |
92132 ls -alh /home/build/openwrt/packages
96136 cd /home/build/openwrt
97137 chown -R build:build packages
98138 sudo -u build sed -i "s/CONFIG_TARGET_ROOTFS_PARTSIZE=[0-9]\+/CONFIG_TARGET_ROOTFS_PARTSIZE=1024/g;s/CONFIG_TARGET_KERNEL_PARTSIZE=[0-9]\+/CONFIG_TARGET_KERNEL_PARTSIZE=256/g" .config
99- sudo -u build make image PROFILE=generic PACKAGES="luci luci-app-qos luci-app-upnp luci-proto-ipv6 kmod-igc luci-i18n-base-zh-cn netdata luci-app-passwall luci-theme-argon -dnsmasq"
139+ sudo -u build make image PROFILE=generic PACKAGES="luci luci-app-qos luci-app-upnp luci-proto-ipv6 kmod-igc luci-i18n-base-zh-cn netdata luci-app-passwall luci-theme-argon samba4-server luci-app-samba4 luci-app-ttyd ntpclient luci-app-ntpc -dnsmasq"
100140 cd bin/targets/x86/64/
101141 tar zcvf $VOLUME_HOME/openwrt-x86-64-master.tar.gz *
102142 - uses : actions/upload-artifact@v3
0 commit comments