Switch to matrix jobs scheduler and upload build logs (#3157)

This commit is contained in:
Igor Pečovnik 2021-09-26 08:42:24 +02:00 committed by GitHub
parent 17507962f5
commit e8c5d07a89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 237 additions and 1109 deletions

File diff suppressed because it is too large Load Diff

View File

@ -69,13 +69,14 @@ jobs:
sudo pkill arm-binfmt-P || true
sudo pkill aarch64-binfmt-P || true
sudo pkill pixz || true
[[ "$(df | grep "/.tmp" | wc -l)" -eq 0 ]] && sudo rm -rf build/.tmp && break
sudo mountpoint -q build/output/images && sudo fusermount -u build/output/images || true
[[ "$(df | grep "/.tmp" | wc -l)" -eq 0 ]] && sudo rm -rf build/.tmp && break
echo "Mounted temp directories. Trying to unmount."
df | grep ".tmp" | awk '{print $6}' | xargs sudo umount 2>/dev/null || true
sleep 10
done
sudo chown -R $USER:$USER .
sudo chown -R $USER:$USER build/.git
- name: Checkout Armbian build script
@ -103,7 +104,7 @@ jobs:
echo "BLTPATH=\"$(pwd)/build/\"" | tee scripts/cacherebuild.conf scripts/betarepository.conf >/dev/null
cd build
rm -rf output/images/*
sudo rm -rf output/images/*
sudo mkdir -p userpatches
sudo cp ../scripts/configs/* userpatches/
[[ ! -f .ignore_changes ]] && sudo touch .ignore_changes
@ -260,7 +261,7 @@ jobs:
sleep 10
done
sudo chown -R $USER:$USER .
sudo chown -R $USER:$USER build/.git
- name: Checkout Armbian build script
@ -372,7 +373,7 @@ jobs:
fi
sudo git checkout -f
sudo chown -R $USER:$USER .
sudo chown -R $USER:$USER .git
git pull
echo "${NEW_VERSION}" > VERSION
git config --global user.email "info@armbian.com"
@ -435,7 +436,7 @@ jobs:
sleep 10
done
sudo chown -R $USER:$USER .
sudo chown -R $USER:$USER build/.git
- name: Checkout Armbian build script

View File

@ -771,7 +771,7 @@ create_image()
else
FINALDEST=$DEST/images/"${BOARD}"/archive
fi
install -d -o nobody -g nogroup -m 775 ${FINALDEST}
install -d ${FINALDEST}
fi
@ -856,7 +856,7 @@ create_image()
# move artefacts from temporally directory to its final destination
[[ -n $compression_type ]] && rm $DESTIMG/${version}.img
mv $DESTIMG/${version}* ${FINALDEST}
rsync -a --no-owner --no-group --remove-source-files $DESTIMG/${version}* ${FINALDEST}
rm -rf $DESTIMG
# write image to SD card