diff --git a/.github/workflows/AutoBuild-Test.yml b/.github/workflows/AutoBuild-Test.yml index f774ddd..f0a53cd 100644 --- a/.github/workflows/AutoBuild-Test.yml +++ b/.github/workflows/AutoBuild-Test.yml @@ -98,10 +98,17 @@ jobs: - name: Run AutoBuild_DiyScript.sh run: | + #!/bin/bash chmod +x Scripts/AutoBuild_*.sh cp $GITHUB_WORKSPACE/Configs/$CONFIG_FILE openwrt/.config cd openwrt - make defconfig > /dev/null 2>&1 + egrep -v "^#|LEVEL|DEFAULT|=[0-9]" .config | grep "CONFIG_PACKAGE" | sed '/^\s*$/d' | while read X;do + line=$(grep -n "${X}" .config | cut -d ':' -f1) + [[ ! ${X} =~ '=' || -z $(echo ${X} | cut -d '=' -f2) || ! $(echo ${X} | cut -d '=' -f2) =~ [nym] ]] && { + echo "ERROR in line ${line}: ${X}" + } + done + make defconfig source $GITHUB_WORKSPACE/Scripts/AutoBuild_DiyScript.sh source $GITHUB_WORKSPACE/Scripts/AutoBuild_Function.sh Firmware-Diy_Main diff --git a/.github/workflows/AutoBuild-asus_rt-acrh17.yml b/.github/workflows/AutoBuild-asus_rt-acrh17.yml index d5d974f..b84ab28 100644 --- a/.github/workflows/AutoBuild-asus_rt-acrh17.yml +++ b/.github/workflows/AutoBuild-asus_rt-acrh17.yml @@ -101,10 +101,17 @@ jobs: - name: Run AutoBuild_DiyScript.sh run: | + #!/bin/bash chmod +x Scripts/AutoBuild_*.sh cp $GITHUB_WORKSPACE/Configs/$CONFIG_FILE openwrt/.config cd openwrt - make defconfig > /dev/null 2>&1 + egrep -v "^#|LEVEL|DEFAULT|=[0-9]" .config | grep "CONFIG_PACKAGE" | sed '/^\s*$/d' | while read X;do + line=$(grep -n "${X}" .config | cut -d ':' -f1) + [[ ! ${X} =~ '=' || -z $(echo ${X} | cut -d '=' -f2) || ! $(echo ${X} | cut -d '=' -f2) =~ [nym] ]] && { + echo "ERROR in line ${line}: ${X}" + } + done + make defconfig source $GITHUB_WORKSPACE/Scripts/AutoBuild_DiyScript.sh source $GITHUB_WORKSPACE/Scripts/AutoBuild_Function.sh Firmware-Diy_Main diff --git a/.github/workflows/AutoBuild-d-team_newifi-d2.yml b/.github/workflows/AutoBuild-d-team_newifi-d2.yml index e5eccba..ef4fc66 100644 --- a/.github/workflows/AutoBuild-d-team_newifi-d2.yml +++ b/.github/workflows/AutoBuild-d-team_newifi-d2.yml @@ -101,10 +101,17 @@ jobs: - name: Run AutoBuild_DiyScript.sh run: | + #!/bin/bash chmod +x Scripts/AutoBuild_*.sh cp $GITHUB_WORKSPACE/Configs/$CONFIG_FILE openwrt/.config cd openwrt - make defconfig > /dev/null 2>&1 + egrep -v "^#|LEVEL|DEFAULT|=[0-9]" .config | grep "CONFIG_PACKAGE" | sed '/^\s*$/d' | while read X;do + line=$(grep -n "${X}" .config | cut -d ':' -f1) + [[ ! ${X} =~ '=' || -z $(echo ${X} | cut -d '=' -f2) || ! $(echo ${X} | cut -d '=' -f2) =~ [nym] ]] && { + echo "ERROR in line ${line}: ${X}" + } + done + make defconfig source $GITHUB_WORKSPACE/Scripts/AutoBuild_DiyScript.sh source $GITHUB_WORKSPACE/Scripts/AutoBuild_Function.sh Firmware-Diy_Main diff --git a/.github/workflows/AutoBuild-redmi_ax6.yml b/.github/workflows/AutoBuild-redmi_ax6.yml index 04a1e1e..d96641f 100644 --- a/.github/workflows/AutoBuild-redmi_ax6.yml +++ b/.github/workflows/AutoBuild-redmi_ax6.yml @@ -101,10 +101,17 @@ jobs: - name: Run AutoBuild_DiyScript.sh run: | + #!/bin/bash chmod +x Scripts/AutoBuild_*.sh cp $GITHUB_WORKSPACE/Configs/$CONFIG_FILE openwrt/.config cd openwrt - make defconfig > /dev/null 2>&1 + egrep -v "^#|LEVEL|DEFAULT|=[0-9]" .config | grep "CONFIG_PACKAGE" | sed '/^\s*$/d' | while read X;do + line=$(grep -n "${X}" .config | cut -d ':' -f1) + [[ ! ${X} =~ '=' || -z $(echo ${X} | cut -d '=' -f2) || ! $(echo ${X} | cut -d '=' -f2) =~ [nym] ]] && { + echo "ERROR in line ${line}: ${X}" + } + done + make defconfig source $GITHUB_WORKSPACE/Scripts/AutoBuild_DiyScript.sh source $GITHUB_WORKSPACE/Scripts/AutoBuild_Function.sh Firmware-Diy_Main diff --git a/.github/workflows/AutoBuild-x86_64.yml b/.github/workflows/AutoBuild-x86_64.yml index 811e321..c9433cf 100644 --- a/.github/workflows/AutoBuild-x86_64.yml +++ b/.github/workflows/AutoBuild-x86_64.yml @@ -101,10 +101,17 @@ jobs: - name: Run AutoBuild_DiyScript.sh run: | + #!/bin/bash chmod +x Scripts/AutoBuild_*.sh cp $GITHUB_WORKSPACE/Configs/$CONFIG_FILE openwrt/.config cd openwrt - make defconfig > /dev/null 2>&1 + egrep -v "^#|LEVEL|DEFAULT|=[0-9]" .config | grep "CONFIG_PACKAGE" | sed '/^\s*$/d' | while read X;do + line=$(grep -n "${X}" .config | cut -d ':' -f1) + [[ ! ${X} =~ '=' || -z $(echo ${X} | cut -d '=' -f2) || ! $(echo ${X} | cut -d '=' -f2) =~ [nym] ]] && { + echo "ERROR in line ${line}: ${X}" + } + done + make defconfig source $GITHUB_WORKSPACE/Scripts/AutoBuild_DiyScript.sh source $GITHUB_WORKSPACE/Scripts/AutoBuild_Function.sh Firmware-Diy_Main diff --git a/.github/workflows/AutoBuild-xiaomi_redmi-router-ac2100.yml b/.github/workflows/AutoBuild-xiaomi_redmi-router-ac2100.yml index a90ae81..81589e5 100644 --- a/.github/workflows/AutoBuild-xiaomi_redmi-router-ac2100.yml +++ b/.github/workflows/AutoBuild-xiaomi_redmi-router-ac2100.yml @@ -101,10 +101,17 @@ jobs: - name: Run AutoBuild_DiyScript.sh run: | + #!/bin/bash chmod +x Scripts/AutoBuild_*.sh cp $GITHUB_WORKSPACE/Configs/$CONFIG_FILE openwrt/.config cd openwrt - make defconfig > /dev/null 2>&1 + egrep -v "^#|LEVEL|DEFAULT|=[0-9]" .config | grep "CONFIG_PACKAGE" | sed '/^\s*$/d' | while read X;do + line=$(grep -n "${X}" .config | cut -d ':' -f1) + [[ ! ${X} =~ '=' || -z $(echo ${X} | cut -d '=' -f2) || ! $(echo ${X} | cut -d '=' -f2) =~ [nym] ]] && { + echo "ERROR in line ${line}: ${X}" + } + done + make defconfig source $GITHUB_WORKSPACE/Scripts/AutoBuild_DiyScript.sh source $GITHUB_WORKSPACE/Scripts/AutoBuild_Function.sh Firmware-Diy_Main diff --git a/.github/workflows/AutoBuild-xiaoyu_xy-c5.yml b/.github/workflows/AutoBuild-xiaoyu_xy-c5.yml index 5f97116..618454b 100644 --- a/.github/workflows/AutoBuild-xiaoyu_xy-c5.yml +++ b/.github/workflows/AutoBuild-xiaoyu_xy-c5.yml @@ -101,10 +101,17 @@ jobs: - name: Run AutoBuild_DiyScript.sh run: | + #!/bin/bash chmod +x Scripts/AutoBuild_*.sh cp $GITHUB_WORKSPACE/Configs/$CONFIG_FILE openwrt/.config cd openwrt - make defconfig > /dev/null 2>&1 + egrep -v "^#|LEVEL|DEFAULT|=[0-9]" .config | grep "CONFIG_PACKAGE" | sed '/^\s*$/d' | while read X;do + line=$(grep -n "${X}" .config | cut -d ':' -f1) + [[ ! ${X} =~ '=' || -z $(echo ${X} | cut -d '=' -f2) || ! $(echo ${X} | cut -d '=' -f2) =~ [nym] ]] && { + echo "ERROR in line ${line}: ${X}" + } + done + make defconfig source $GITHUB_WORKSPACE/Scripts/AutoBuild_DiyScript.sh source $GITHUB_WORKSPACE/Scripts/AutoBuild_Function.sh Firmware-Diy_Main