From e4d1f1b1088781323c6af0a029ee1b670208c981 Mon Sep 17 00:00:00 2001 From: dichgrem Date: Mon, 20 Oct 2025 10:44:35 +0800 Subject: [PATCH] feat:mips_actions --- .github/workflows/build-zzz.yml | 11 +++++++++-- luci-app-zzz/luasrc/model/cbi/zzz.lua | 1 - 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-zzz.yml b/.github/workflows/build-zzz.yml index b577d0d..6be0c62 100644 --- a/.github/workflows/build-zzz.yml +++ b/.github/workflows/build-zzz.yml @@ -8,11 +8,13 @@ on: required: true type: choice options: + - ramips - filogic - x86_64 default: filogic env: + RAMIPS_SDK_URL: https://downloads.immortalwrt.org/releases/24.10.3/targets/ramips/mt7621/immortalwrt-sdk-24.10.3-ramips-mt7621_gcc-13.3.0_musl.Linux-x86_64.tar.zst FILOGIC_SDK_URL: https://downloads.immortalwrt.org/releases/24.10.3/targets/mediatek/filogic/immortalwrt-sdk-24.10.3-mediatek-filogic_gcc-13.3.0_musl.Linux-x86_64.tar.zst X86_SDK_URL: https://downloads.immortalwrt.org/releases/24.10.3/targets/x86/64/immortalwrt-sdk-24.10.3-x86-64_gcc-13.3.0_musl.Linux-x86_64.tar.zst @@ -33,14 +35,19 @@ jobs: - name: Resolve SDK choice id: vars run: | + set -e if [ "${{ github.event.inputs.sdk }}" = "x86_64" ]; then echo "SDK_URL=${X86_SDK_URL}" >> $GITHUB_ENV echo "PACKAGE_ARCH=x86_64" >> $GITHUB_ENV echo "👉 选择x86_64架构" - else + elif [ "${{ github.event.inputs.sdk }}" = "filogic" ]; then echo "SDK_URL=${FILOGIC_SDK_URL}" >> $GITHUB_ENV echo "PACKAGE_ARCH=aarch64_cortex-a53" >> $GITHUB_ENV echo "👉 选择aarch64架构" + else + echo "SDK_URL=${RAMIPS_SDK_URL}" >> $GITHUB_ENV + echo "PACKAGE_ARCH=ramips" >> $GITHUB_ENV + echo "👉 选择ramips架构" fi echo "WORK_ROOT=$GITHUB_WORKSPACE/imwrt-sdk" >> $GITHUB_ENV @@ -128,4 +135,4 @@ jobs: with: name: zzz path: output/*zzz*.ipk - if-no-files-found: error \ No newline at end of file + if-no-files-found: error diff --git a/luci-app-zzz/luasrc/model/cbi/zzz.lua b/luci-app-zzz/luasrc/model/cbi/zzz.lua index 209aa08..bf7aa49 100644 --- a/luci-app-zzz/luasrc/model/cbi/zzz.lua +++ b/luci-app-zzz/luasrc/model/cbi/zzz.lua @@ -78,7 +78,6 @@ o.rmempty = false o.rawhtml = true -- Network Device -o = s:option(ListValue, "device", "网络接口", "用于认证的网络接口") o = s:option( Value, "device",