fix mosdns build error

This commit is contained in:
xopenwrt
2024-03-03 20:18:16 +08:00
committed by GitHub
parent ed93a4f947
commit ac970eefa5
3 changed files with 6 additions and 0 deletions
+2
View File
@@ -216,6 +216,8 @@ jobs:
rm package/feeds/packages/adguardhome -rf
rm feeds/packages/net/adguardhome -rf
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
[ "$?" == 0 ] && echo "Result=true" >> $GITHUB_ENV || echo "Result=false" >> $GITHUB_ENV