Skip to content
This repository was archived by the owner on Jan 7, 2022. It is now read-only.

Commit e1819c4

Browse files
bors[bot]vext01
andcommitted
Merge #13
13: Yk copy good builds r=ltratt a=vext01 Successful builds are tarred up and placed in /opt/ykrustc-bin-snapshots on the build master. For now, store at most one archive, but we might change that in the future. I've tested something very close to this (just without the chmod line in the buildbot script). It *should* work fine 😸 ``` $ ls -al /opt/ykrustc-bin-snapshots/ total 188948 drwxrwxr-x 2 root buildbot_workers 4096 Apr 18 18:23 . drwxr-xr-x 8 root root 4096 Apr 18 11:32 .. -rwxrwxr-x 1 buildbot-worker4 buildbot-worker4 193469353 Apr 18 18:23 ykrustc-stage2-057d397c.tar.bz2 $ cd /tmp $ tar jxf /opt/ykrustc-bin-snapshots/ykrustc-stage2-057d397c.tar.bz2 $ cd ykrustc-stage2/ $ ls bin lib VERSION $ cat VERSION commit 057d397c982463d374f60e16f9b3863dc660e4f2 Author: Edd Barrett <vext01@gmail.com> Date: Thu Apr 18 12:04:20 2019 +0100 Kill [install]. $ ``` If you agree with this, then I suppose the next step is to try using the tarball in: ykjit/yk#1 Co-authored-by: Edd Barrett <vext01@gmail.com>
2 parents 14d78dd + 51e7587 commit e1819c4

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.buildbot.sh

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,23 @@
22
#
33
# Build script for continuous integration.
44

5-
./x.py clean # We don't clone afresh to save time and bandwidth.
6-
git clean -dffx # If upstream removes a submodule, remove the files from disk.
5+
set -e
76

87
# Ensure the build fails if it uses excessive amounts of memory.
98
ulimit -d $((1024 * 1024 * 8)) # 8 GiB
109

1110
# Note that the gdb must be Python enabled.
1211
/usr/bin/time -v env PATH=/opt/gdb-8.2/bin:${PATH} \
1312
RUST_BACKTRACE=1 ./x.py test --config .buildbot.toml
13+
14+
# Archive the build and put it in /opt
15+
TARBALL_TOPDIR=ykrustc-stage2
16+
TARBALL_NAME=ykrustc-stage2-latest.tar.bz2
17+
SNAP_DIR=/opt/ykrustc-bin-snapshots
18+
19+
cd build/x86_64-unknown-linux-gnu
20+
ln -sf stage2 ${TARBALL_TOPDIR}
21+
git show -s HEAD > ${TARBALL_TOPDIR}/VERSION
22+
tar hjcvf ${TARBALL_NAME} ${TARBALL_TOPDIR}
23+
chmod 775 ${TARBALL_NAME}
24+
mv ${TARBALL_NAME} ${SNAP_DIR} # Overwrites any old archive.

0 commit comments

Comments
 (0)