File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,13 @@ if [ "${1}" = "aarch64-linux-android" ] ; then
24
24
docker system df
25
25
fi
26
26
27
+ imgname=libc-$1
28
+
27
29
run () {
28
30
echo " Building docker container for target ${1} "
29
31
30
32
# use -f so we can use ci/ as build context
31
- docker build -t libc -f " ci/docker/${1} /Dockerfile" ci/
33
+ docker build -t $imgname -f " ci/docker/${1} /Dockerfile" ci/
32
34
mkdir -p target
33
35
if [ -w /dev/kvm ]; then
34
36
kvm=" --volume /dev/kvm:/dev/kvm"
@@ -50,15 +52,17 @@ run() {
50
52
$kvm \
51
53
--init \
52
54
--workdir /checkout \
53
- libc \
55
+ $imgname \
54
56
sh -c " HOME=/tmp PATH=\$ PATH:/rust/bin exec ci/run.sh ${1} "
55
57
}
56
58
57
59
build_switch () {
58
60
echo " Building docker container for target switch"
59
61
62
+ imgname=libc-switch
63
+
60
64
# use -f so we can use ci/ as build context
61
- docker build -t libc -f " ci/docker/switch/Dockerfile" ci/
65
+ docker build -t $imgname -f " ci/docker/switch/Dockerfile" ci/
62
66
mkdir -p target
63
67
if [ -w /dev/kvm ]; then
64
68
kvm=" --volume /dev/kvm:/dev/kvm"
@@ -82,7 +86,7 @@ build_switch() {
82
86
$kvm \
83
87
--init \
84
88
--workdir /checkout \
85
- libc \
89
+ $imgname \
86
90
sh -c " HOME=/tmp RUSTUP_HOME=/tmp PATH=\$ PATH:/rust/bin rustup default nightly \
87
91
&& rustup component add rust-src --target ci/switch.json \
88
92
&& cargo build -Z build-std=core,alloc --target ci/switch.json"
You can’t perform that action at this time.
0 commit comments