From 9246effd0907aa5955cf0aaee7dcc468c1a47736 Mon Sep 17 00:00:00 2001 From: xopenwrt <98641952+xopenwrt@users.noreply.github.com> Date: Mon, 31 Aug 2026 22:59:22 +0800 Subject: [PATCH] add build check --- .github/workflows/X-x86_64_X.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/X-x86_64_X.yml b/.github/workflows/X-x86_64_X.yml index 208317e..9f44bdf 100644 --- a/.github/workflows/X-x86_64_X.yml +++ b/.github/workflows/X-x86_64_X.yml @@ -220,7 +220,10 @@ jobs: ln -s ../../../package/other/AutoBuild-Packages/adguardhome package/feeds/packages/adguardhome # 2024.03.03 mosdns build fail by golang 1.22 sed -i 's/CGO_ENABLED=0/CGO_ENABLED=1/g' feeds/packages/net/mosdns/Makefile - make -j4 | tee ./build_log.log || make -j1 V=s + make -j4 2>&1 | tee build_log.log + if [ "${PIPESTATUS[0]}" -ne 0 ]; then + make -j1 V=s + fi [ "$?" == 0 ] && echo "Result=true" >> $GITHUB_ENV || echo "Result=false" >> $GITHUB_ENV