From fc3fe5711227364c06f51c2b3bcd4867deaa9915 Mon Sep 17 00:00:00 2001 From: dichgrem Date: Fri, 24 Oct 2025 11:33:21 +0800 Subject: [PATCH] feat:extra_proxy --- .github/workflows/build.yml | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ebc640c..db4b837 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -32,6 +32,21 @@ on: required: true default: "config/myconfig" type: string + proxy_nikki: + description: "启用Nikki" + required: false + default: false + type: boolean + proxy_passwall2: + description: "启用Passwall2" + required: false + default: false + type: boolean + proxy_luci_app_momo: + description: "启用luci-app-momo" + required: false + default: false + type: boolean threads: description: "编译线程数(填写 0 则使用 nproc)" required: false @@ -130,6 +145,21 @@ jobs: - name: Update and install feeds working-directory: wrt run: | + if [ "${{ github.event.inputs.proxy_nikki }}" == "true" ]; then + echo "📦 添加 nikki feed" + echo "src-git nikki https://github.com/nikkinikki-org/OpenWrt-nikki.git;main" >> "feeds.conf.default" + fi + + if [ "${{ github.event.inputs.proxy_passwall2 }}" == "true" ]; then + echo "📦 添加 passwall2 feed" + echo "src-git passwall https://github.com/xiaorouji/openwrt-passwall2.git" >> "feeds.conf.default" + fi + + if [ "${{ github.event.inputs.proxy_luci_app_momo }}" == "true" ]; then + echo "📦 添加 luci-app-momo feed" + echo "src-git momo https://github.com/nikkinikki-org/OpenWrt-momo.git;main" >> "feeds.conf.default" + fi + echo "📦 更新 feeds" ./scripts/feeds update -a echo "📦 安装 feeds" @@ -224,4 +254,4 @@ jobs: uses: actions/upload-artifact@v4 with: name: ${{ inputs.project }}-build-log - path: wrt/world_debug.log \ No newline at end of file + path: wrt/world_debug.log