automated: add latest symlinks for nightly and lts logs

This commit is contained in:
Jens Petersen 2026-02-18 19:33:48 +08:00
parent 45b4a17981
commit 808fb07903
3 changed files with 6 additions and 7 deletions

View File

@ -150,11 +150,6 @@ case $SHORTNAME in
nightly) JOBS=16 ;;
esac
if [ -e "$SHORTNAME-build.log" ]
then
cp -p $SHORTNAME-build.log $SHORTNAME-build.log-previous
fi
# Now do the actual build. We need to first set the owner of the home directory
# correctly, so we run the command as root, change owner, and then use sudo to
# switch back to the current user

View File

@ -3,5 +3,7 @@
cd "$(dirname "${BASH_SOURCE[0]}")"
git pull
time script -q -c "./build.sh $*" $1-build-$(date -u +%F_%T).log
LOG_FILE="$1-build-$(date -u +%F_%T).log"
time script -q -c "./build.sh $*" $LOG_FILE
ln -sf $LOG_FILE lts-build-last.log
date

View File

@ -9,10 +9,12 @@ esac
while true; do
git pull
time script -q -c "./build.sh nightly-$(date -u +%F) $cmd" nightly-build-$(date -u +%F_%T).log
LOG_FILE="nightly-build-$(date -u +%F_%T).log"
time script -q -c "./build.sh nightly-$(date -u +%F) $cmd"
${cmd:+exit 0}
${once:+date; exit 0}
echo "$0: run completed at $(date)"
ln -sf $LOG_FILE nightly-build-last.log
echo
sleep 99m
echo