File tree Expand file tree Collapse file tree 1 file changed +37
-2
lines changed
Expand file tree Collapse file tree 1 file changed +37
-2
lines changed Original file line number Diff line number Diff line change @@ -10,16 +10,51 @@ jobs:
1010 options : --user root
1111 steps :
1212 - uses : actions/checkout@v3
13- - name : Print Pwd
13+ - name : Run Make
1414 run : |
1515 cp -r /__w/openwrt_workflow/openwrt_workflow /home/build/openwrt_workflow
1616 chown -R build:build /home/build/openwrt_workflow
1717 cd /home/build/openwrt
1818
19- nproc
2019 sudo -u build chmod +x /home/build/openwrt_workflow/build.sh
2120 sudo -u build /home/build/openwrt_workflow/build.sh
21+ cp bin/packages/x86_64/passwall.tar.gz /__w/openwrt_workflow/openwrt_workflow/
22+ - uses : actions/upload-artifact@v3
23+ with :
24+ name : passwall
25+ path : passwall.tar.gz
2226
27+ build_image :
28+ name : Build Image
29+ runs-on : ubuntu-latest
30+ container :
31+ image : openwrtorg/imagebuilder:x86-64-master
32+ options : --user root
33+ defaults :
34+ run :
35+ shell : bash
36+ steps :
37+ - uses : actions/download-artifact@v3
38+ with :
39+ name : passwall
40+ - name : Run Make
41+ run : |
42+ export VOLUME_HOME=$(pwd)
43+ cd /home/build/openwrt
44+ mv $VOLUME_HOME/passwall.tar.gz packages
45+ pushd packages
46+ tar zxvf passwall.tar.gz
47+ rm passwall.tar.gz
48+ popd
49+ chown -R build:build packages
50+ 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
51+ 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 -dnsmasq"
52+ cd bin/targets/x86/64/
53+ tar zcvf $VOLUME_HOME/openwrt-x86-64-master.tar.gz *
54+ - uses : actions/upload-artifact@v3
55+ with :
56+ name : openwrt
57+ path : openwrt-x86-64-master.tar.gz
2358
2459
2560
You can’t perform that action at this time.
0 commit comments