@@ -51,10 +51,38 @@ jobs:
51
51
with :
52
52
name : luci-theme-argon
53
53
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
54
82
55
83
build_image :
56
84
name : Build Image
57
- needs : [build_passwall, build_theme_argon]
85
+ needs : [build_passwall, build_theme_argon, build_luci_app_netdata ]
58
86
runs-on : ubuntu-latest
59
87
container :
60
88
image : openwrtorg/imagebuilder:x86-64-master
69
97
- uses : actions/download-artifact@v3
70
98
with :
71
99
name : luci-theme-argon
100
+ - uses : actions/download-artifact@v3
101
+ with :
102
+ name : luci-app-netdata
72
103
- name : Prepare Passwall
73
104
run : |
74
105
export VOLUME_HOME=$(pwd)
@@ -87,6 +118,15 @@ jobs:
87
118
tar zxvf luci-theme-argon.tar.gz
88
119
rm luci-theme-argon.tar.gz
89
120
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
90
130
- name : Debug Print
91
131
run : |
92
132
ls -alh /home/build/openwrt/packages
96
136
cd /home/build/openwrt
97
137
chown -R build:build packages
98
138
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"
100
140
cd bin/targets/x86/64/
101
141
tar zcvf $VOLUME_HOME/openwrt-x86-64-master.tar.gz *
102
142
- uses : actions/upload-artifact@v3
0 commit comments