Unverified Commit 9fcc9afc authored by wukongdaily's avatar wukongdaily Committed by GitHub
Browse files

新增ipq807x机型

parent dd128a6b
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
# xiaomi_redmi-router-ax6000-stock ————原厂默认 bootloader(stock)版本 # xiaomi_redmi-router-ax6000-stock ————原厂默认 bootloader(stock)版本
# xiaomi_redmi-router-ax6000-ubootmod—————改装过 bootloader 的版本(ubootmod) # xiaomi_redmi-router-ax6000-ubootmod—————改装过 bootloader 的版本(ubootmod)
name: Build MTK Router ImmortalWrt 24.10.x name: Build Wireless Router ImmortalWrt 24.10.x
on: on:
workflow_dispatch: workflow_dispatch:
...@@ -51,6 +51,15 @@ on: ...@@ -51,6 +51,15 @@ on:
- xiaomi_redmi-router-ax6000 - xiaomi_redmi-router-ax6000
- xiaomi_redmi-router-ax6000-stock - xiaomi_redmi-router-ax6000-stock
- xiaomi_redmi-router-ax6000-ubootmod - xiaomi_redmi-router-ax6000-ubootmod
- qnap_301w
- redmi_ax6
- redmi_ax6-stock
- spectrum_sax1v1k
- tplink_eap660hd-v1
- xiaomi_ax3600
- xiaomi_ax3600-stock
- xiaomi_ax9000
- xiaomi_ax9000-stock
- cmcc_a10-stock - cmcc_a10-stock
- cmcc_a10-ubootmod - cmcc_a10-ubootmod
- cmcc_rax3000m - cmcc_rax3000m
...@@ -146,7 +155,32 @@ on: ...@@ -146,7 +155,32 @@ on:
- zyxel_ex5601-t0-ubootmod - zyxel_ex5601-t0-ubootmod
- zyxel_ex5700-telenor - zyxel_ex5700-telenor
- zyxel_nwa50ax-pro - zyxel_nwa50ax-pro
default: cmcc_rax3000m-emmc-ubootmod - arcadyan_aw1000
- asus_rt-ax89x
- buffalo_wxr-5950ax12
- cmcc_rm2-6
- compex_wpq873
- dynalink_dl-wrx36
- edgecore_eap102
- edimax_cax1800
- linksys_mx4200v1
- linksys_mx4200v2
- linksys_mx4300
- linksys_mx5300
- linksys_mx8500
- netgear_rax120v2
- netgear_sxr80
- netgear_sxs80
- netgear_wax218
- netgear_wax620
- netgear_wax630
- prpl_haze
- yuncore_ax880
- zbtlink_zbt-z800ax
- zte_mf269
- zte_mf269-stock
- zyxel_nbg7815
default: glinet_gl-mt6000
custom_router_ip: custom_router_ip:
description: "请设置路由器的管理地址 格式:192.168.x.1 10.x.x.1" description: "请设置路由器的管理地址 格式:192.168.x.1 10.x.x.1"
required: true required: true
...@@ -206,12 +240,19 @@ jobs: ...@@ -206,12 +240,19 @@ jobs:
fi fi
- name: Build MTK ImmortalWrt 24.10.2 - name: Build Wireless ImmortalWrt 24.10.2
run: | run: |
profile="${{ github.event.inputs.profile }}" profile="${{ github.event.inputs.profile }}"
echo "Building for profile: $profile" echo "Building for profile: $profile"
include_docker="${{ github.event.inputs.include_docker }}" include_docker="${{ github.event.inputs.include_docker }}"
echo "platform=mediatek/filogic" >> $GITHUB_ENV echo "platform=mediatek/filogic" >> $GITHUB_ENV
# 读取 ipq807x 机型文件
ipq807x_models=$(cat model/ipq807x.txt | tr '\n' '|')
ipq807x_models=${ipq807x_models%|}
if [[ "$profile" =~ ^($ipq807x_models)$ ]]; then
case_tag="qualcommax-ipq807x-openwrt-24.10.2"
case_platform="qualcommax/ipq807x"
fi
# 判断机型 # 判断机型
case "$profile" in case "$profile" in
glinet_gl-b2200) glinet_gl-b2200)
...@@ -246,7 +287,14 @@ jobs: ...@@ -246,7 +287,14 @@ jobs:
cp ${{ github.workspace }}/mediatek-filogic/build23.sh ${{ github.workspace }}/mediatek-filogic/build24.sh cp ${{ github.workspace }}/mediatek-filogic/build23.sh ${{ github.workspace }}/mediatek-filogic/build24.sh
;; ;;
*) *)
tag=mediatek-filogic-openwrt-24.10.2 #默认大部分机型采用此分支构建 # 如果前面匹配了 ipq807x 文件,则使用文件里的 tag
if [[ -n "$case_tag" ]]; then
tag=$case_tag
echo "platform=$case_platform" >> $GITHUB_ENV
else
# 默认分支
tag=mediatek-filogic-openwrt-24.10.2
fi
;; ;;
esac esac
...@@ -282,14 +330,11 @@ jobs: ...@@ -282,14 +330,11 @@ jobs:
- name: Upload ImmortalWrt as release assets - name: Upload ImmortalWrt as release assets
uses: softprops/action-gh-release@v2.2.1 uses: softprops/action-gh-release@v2.2.1
with: with:
tag_name: mediatek tag_name: wireless
name: ImmortalWrt-Mediatek name: ImmortalWrt-Wireless
body_path: ${{ github.workspace }}/mediatek-filogic/info.md body_path: ${{ github.workspace }}/mediatek-filogic/info.md
files: | files: |
${{ github.workspace }}/bin/targets/${{ env.platform }}/*.bin ${{ github.workspace }}/bin/targets/${{ env.platform }}/*
${{ github.workspace }}/bin/targets/${{ env.platform }}/*.itb
${{ github.workspace }}/bin/targets/${{ env.platform }}/*.ubi
${{ github.workspace }}/bin/targets/${{ env.platform }}/*.fip
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
arcadyan_aw1000
asus_rt-ax89x
buffalo_wxr-5950ax12
cmcc_rm2-6
compex_wpq873
dynalink_dl-wrx36
edgecore_eap102
edimax_cax1800
linksys_mx4200v1
linksys_mx4200v2
linksys_mx4300
linksys_mx5300
linksys_mx8500
netgear_rax120v2
netgear_sxr80
netgear_sxs80
netgear_wax218
netgear_wax620
netgear_wax630
prpl_haze
qnap_301w
redmi_ax6
redmi_ax6-stock
spectrum_sax1v1k
tplink_eap660hd-v1
xiaomi_ax3600
xiaomi_ax3600-stock
xiaomi_ax9000
xiaomi_ax9000-stock
yuncore_ax880
zbtlink_zbt-z800ax
zte_mf269
zte_mf269-stock
zyxel_nbg7815
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment