Skip to content

Commit c51acf4

Browse files
20020502
1 parent c653683 commit c51acf4

File tree

3 files changed

+39
-2
lines changed

3 files changed

+39
-2
lines changed

.github/workflows/build_image.yml

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ jobs:
88
container:
99
image: openwrtorg/sdk:x86_64-master
1010
options: --user root
11+
defaults:
12+
run:
13+
shell: bash
1114
steps:
1215
- uses: actions/checkout@v3
1316
- name: Run Make
@@ -24,9 +27,34 @@ jobs:
2427
name: passwall
2528
path: passwall.tar.gz
2629

30+
build_theme_argon:
31+
name: Build Argon
32+
runs-on: ubuntu-latest
33+
container:
34+
image: openwrtorg/sdk:x86_64-master
35+
options: --user root
36+
defaults:
37+
run:
38+
shell: bash
39+
steps:
40+
- uses: actions/checkout@v3
41+
- name: Run Make
42+
run: |
43+
export VOLUME_HOME=$(pwd)
44+
cd /home/build/openwrt
45+
sudo -u build git clone https://github.com/jerrykuku/luci-theme-argon.git package/luci-theme-argon
46+
sudo -u build ./scripts/feeds update -a
47+
sudo -u build make defconfig
48+
sudo -u make package/luci-theme-argon/compile V=s -j1
49+
tar zcvf $VOLUME_HOME/luci-theme-argon.tar.gz bin/packages/x86_64/base/luci-theme-argon_2.2.9.4_all.ipk
50+
- uses: actions/upload-artifact@v3
51+
with:
52+
name: luci-theme-argon
53+
path: luci-theme-argon.tar.gz
54+
2755
build_image:
2856
name: Build Image
29-
needs: build_passwall
57+
needs: [build_passwall, build_theme_argon]
3058
runs-on: ubuntu-latest
3159
container:
3260
image: openwrtorg/imagebuilder:x86-64-master
@@ -38,8 +66,14 @@ jobs:
3866
- uses: actions/download-artifact@v3
3967
with:
4068
name: passwall
69+
- uses: actions/download-artifact@v3
70+
with:
71+
name: luci-theme-argon
4172
- name: Run Make
4273
run: |
74+
apt update
75+
apt upgrade -y
76+
apt install git -y
4377
export VOLUME_HOME=$(pwd)
4478
cd /home/build/openwrt
4579
mv $VOLUME_HOME/passwall.tar.gz packages
@@ -49,7 +83,7 @@ jobs:
4983
popd
5084
chown -R build:build packages
5185
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
52-
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"
86+
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"
5387
cd bin/targets/x86/64/
5488
tar zcvf $VOLUME_HOME/openwrt-x86-64-master.tar.gz *
5589
- uses: actions/upload-artifact@v3

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
# openwrt_workflow
22
build openwrt via github workflow
3+
4+
Push and see the magic ~

build-days

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20220502

0 commit comments

Comments
 (0)