File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -135,12 +135,18 @@ jobs:
135135 export VOLUME_HOME=$(pwd)
136136 cd /home/build/openwrt
137137 chown -R build:build packages
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
139- sudo -u build make image PROFILE=generic PACKAGES="luci luci-app-qos luci-app-upnp luci-proto-ipv6 kmod-igc kmod-mt7921e \
140- luci-i18n-base-zh-cn netdata luci-app-passwall luci-theme-argon samba4-server \
141- luci-app-samba4 luci-app-ttyd ntpclient luci-app-ntpc -dnsmasq"
138+ sudo -u build sed -i "s/CONFIG_TARGET_ROOTFS_PARTSIZE=[0-9]\+/CONFIG_TARGET_ROOTFS_PARTSIZE=${{ env.rootfs_size }}/g;s/CONFIG_TARGET_KERNEL_PARTSIZE=[0-9]\+/CONFIG_TARGET_KERNEL_PARTSIZE=${{ env.kernel_size }}/g" .config
139+ sudo -u build make image PROFILE=${{ env.profile }} PACKAGES="${{ env.packages }}"
142140 cd bin/targets/x86/64/
143141 tar zcvf $VOLUME_HOME/openwrt-x86-64-master.tar.gz *
142+ env :
143+ rootfs_size : 1024
144+ kernel_size : 256
145+ profile : generic
146+ packages : luci luci-app-qos luci-app-upnp luci-proto-ipv6 kmod-igc kmod-mt7921e
147+ luci-i18n-base-zh-cn netdata luci-app-passwall luci-theme-argon samba4-server
148+ luci-app-samba4 luci-app-ttyd ntpclient luci-app-ntpc pciutils vim python3 python3-yaml
149+ coreutils-timeout lm-sensors lm-sensors-detect -dnsmasq
144150 - uses : actions/upload-artifact@v3
145151 with :
146152 name : openwrt
You can’t perform that action at this time.
0 commit comments