]> git.proxmox.com Git - rustc.git/blame - src/ci/docker/dist-various-1/build-rumprun.sh
New upstream version 1.45.0+dfsg1
[rustc.git] / src / ci / docker / dist-various-1 / build-rumprun.sh
CommitLineData
abe05a73 1#!/usr/bin/env bash
32a655c1
SL
2set -ex
3
4hide_output() {
5 set +x
6 on_err="
7echo ERROR: An error was encountered with the build.
8cat /tmp/build.log
9exit 1
10"
11 trap "$on_err" ERR
12 bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
13 PING_LOOP_PID=$!
14 $@ &> /tmp/build.log
15 trap - ERR
16 kill $PING_LOOP_PID
17 rm /tmp/build.log
18 set -x
19}
20
21git clone https://github.com/rumpkernel/rumprun
22cd rumprun
23git reset --hard 39a97f37a85e44c69b662f6b97b688fbe892603b
24git submodule update --init
25
26CC=cc hide_output ./build-rr.sh -d /usr/local hw
27cd ..
28rm -rf rumprun