Skip to content

Commit a2a67f6

Browse files
20020502
1 parent a373083 commit a2a67f6

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

.github/workflows/build_image.yml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,18 +69,31 @@ jobs:
6969
- uses: actions/download-artifact@v3
7070
with:
7171
name: luci-theme-argon
72-
- name: Run Make
72+
- name: Prepare Passwall
7373
run: |
74-
apt update
75-
apt upgrade -y
76-
apt install git -y
7774
export VOLUME_HOME=$(pwd)
7875
cd /home/build/openwrt
7976
mv $VOLUME_HOME/passwall.tar.gz packages
8077
pushd packages
8178
tar zxvf passwall.tar.gz
8279
rm passwall.tar.gz
8380
popd
81+
- name: Prepare Argon
82+
run: |
83+
export VOLUME_HOME=$(pwd)
84+
cd /home/build/openwrt
85+
mv $VOLUME_HOME/luci-theme-argon.tar.gz packages
86+
pushd packages
87+
tar zxvf luci-theme-argon.tar.gz
88+
rm luci-theme-argon.tar.gz
89+
popd
90+
- name: Debug Print
91+
run: |
92+
ls -alh /home/build/openwrt/packages
93+
- name: Make Image
94+
run: |
95+
export VOLUME_HOME=$(pwd)
96+
cd /home/build/openwrt
8497
chown -R build:build packages
8598
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
8699
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"
@@ -90,6 +103,3 @@ jobs:
90103
with:
91104
name: openwrt
92105
path: openwrt-x86-64-master.tar.gz
93-
94-
95-

0 commit comments

Comments
 (0)