Autobuild speed up for rdv40

This commit is contained in:
Gator96100 2020-09-08 02:36:14 +02:00
parent f8f2ba61da
commit b62e4aa51d

View file

@ -4,6 +4,7 @@ copyDir=/builds
buildDir=/tmp
mingwDir=/mingw64
arch=64
jobs=$(nproc)
pacman -Q p7zip 1> /dev/null
if [[ $? != 0 ]]; then
@ -19,8 +20,14 @@ for i in $( ls -d */ ); do
hash=$(git rev-parse HEAD)
date=$(date +%Y%m%d)
if ! ls $copyDir/${i%%/}-$arch/*-$hash.7z 1> /dev/null 2>&1; then
if [ ! -f "rdv40.txt" ]; then
jobs=1
fi
make clean
make all
make all -j$jobs
if [ $? -eq 0 ]; then
rm -rf $buildDir/${i%%/}/*
mkdir -p $copyDir/${i%%/}-$arch/