Build: limit the size of ccache

This commit is contained in:
John Doe
2021-10-18 21:16:14 +08:00
parent 33e54be623
commit 717c2de723
2 changed files with 3 additions and 0 deletions

View File

@@ -54,6 +54,7 @@ sleep 10
cd /mnt/img cd /mnt/img
sysupgrade -b back.tar.gz sysupgrade -b back.tar.gz
tar zxf back.tar.gz tar zxf back.tar.gz
opkg list-installed | grep "luci-i18n\|luci-app" | cut -d\ -f1 > packages_needed
if ! grep -q macaddr /etc/config/network; then if ! grep -q macaddr /etc/config/network; then
echo -e '\e[91m注意由于已知的问题“网络接口”配置无法继承重启后需要重新设置WAN拨号和LAN网段信息\e[0m' echo -e '\e[91m注意由于已知的问题“网络接口”配置无法继承重启后需要重新设置WAN拨号和LAN网段信息\e[0m'
rm etc/config/network; rm etc/config/network;

View File

@@ -20,6 +20,8 @@ sed -i '/skip\=/ a skip=`mount | grep -q /dev/$device; echo $?`' `find package/
mkdir -p `find package/ -follow -type d -path '*/pdnsd-alt'`/patches mkdir -p `find package/ -follow -type d -path '*/pdnsd-alt'`/patches
mv $GITHUB_WORKSPACE/patches/99-disallow-aaaa.patch `find package/ -follow -type d -path '*/pdnsd-alt'`/patches mv $GITHUB_WORKSPACE/patches/99-disallow-aaaa.patch `find package/ -follow -type d -path '*/pdnsd-alt'`/patches
sed -i 's/5.0/1.0/' .ccache/ccache.conf
if [ $BRANCH == 'master' ]; then if [ $BRANCH == 'master' ]; then
sed -i 's/5.10/5.4/' target/linux/rockchip/Makefile sed -i 's/5.10/5.4/' target/linux/rockchip/Makefile