parent
53eccfb34b
commit
e7888ceaad
|
@ -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`
|
||||
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
|
||||
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 ..
|
||||
|
|
Loading…
Reference in New Issue