# Conflicts:
#	.github/workflows/lo-test.yml
pull/1358/head
John Doe 2024-02-12 14:18:14 +08:00
parent 53eccfb34b
commit e7888ceaad
No known key found for this signature in database
GPG Key ID: 30F190E0C359CB4F
1 changed files with 10 additions and 8 deletions

View File

@ -119,13 +119,16 @@ jobs:
ulimit -SHn 65000
cd ~/lede
while true; do make download -j && break || true; done
if [ `nproc` -lt 8 ] && con = `nproc`/2+3 || con = `nproc`
if [ -d build_dir ]; then
make -j$con IGNORE_ERRORS=1 tools/compile toolchain/compile buildinfo target/compile package/compile package/install target/install
if [ ! -e ~/lede/bin/targets/*/*/*imagebuilder*xz ]; then
df -h
make V=sc
fi
mv `ls ~/lede/bin/targets/*/*/*imagebuilder*xz` ~/ib-$DEVICE.tar.xz
else
make -j$con IGNORE_ERRORS=1 tools/compile toolchain/compile
fi
echo "======================="
echo "Space usage:"
@ -140,8 +143,7 @@ jobs:
cd
mkdir -p ./artifact/buildinfo
cd lede
cp -rf $(find ./bin/targets/ -type f -name "*.buildinfo" -o -name "*.manifest") ../artifact/buildinfo/
cp -rf .config ../artifact/buildinfo/
cp -rf .config $(find ./bin/targets/ -type f -name "*.buildinfo" -o -name "*.manifest") ../artifact/buildinfo/
echo "strDate=$(TZ=UTC-8 date +%Y-%m-%d)" >> $GITHUB_ENV
echo "strDevice=$(echo $DEVICE | awk '{print toupper($0)}')" >> $GITHUB_ENV
cd ..