|
8 | 8 | container:
|
9 | 9 | image: openwrtorg/sdk:x86_64-master
|
10 | 10 | options: --user root
|
| 11 | + defaults: |
| 12 | + run: |
| 13 | + shell: bash |
11 | 14 | steps:
|
12 | 15 | - uses: actions/checkout@v3
|
13 | 16 | - name: Run Make
|
|
24 | 27 | name: passwall
|
25 | 28 | path: passwall.tar.gz
|
26 | 29 |
|
| 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 | + |
27 | 55 | build_image:
|
28 | 56 | name: Build Image
|
29 |
| - needs: build_passwall |
| 57 | + needs: [build_passwall, build_theme_argon] |
30 | 58 | runs-on: ubuntu-latest
|
31 | 59 | container:
|
32 | 60 | image: openwrtorg/imagebuilder:x86-64-master
|
|
38 | 66 | - uses: actions/download-artifact@v3
|
39 | 67 | with:
|
40 | 68 | name: passwall
|
| 69 | + - uses: actions/download-artifact@v3 |
| 70 | + with: |
| 71 | + name: luci-theme-argon |
41 | 72 | - name: Run Make
|
42 | 73 | run: |
|
| 74 | + apt update |
| 75 | + apt upgrade -y |
| 76 | + apt install git -y |
43 | 77 | export VOLUME_HOME=$(pwd)
|
44 | 78 | cd /home/build/openwrt
|
45 | 79 | mv $VOLUME_HOME/passwall.tar.gz packages
|
|
49 | 83 | popd
|
50 | 84 | chown -R build:build packages
|
51 | 85 | 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" |
53 | 87 | cd bin/targets/x86/64/
|
54 | 88 | tar zcvf $VOLUME_HOME/openwrt-x86-64-master.tar.gz *
|
55 | 89 | - uses: actions/upload-artifact@v3
|
|
0 commit comments