File tree Expand file tree Collapse file tree 3 files changed +2
-75
lines changed Expand file tree Collapse file tree 3 files changed +2
-75
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -58,48 +58,11 @@ run() {
58
58
sh -c " HOME=/tmp PATH=\$ PATH:/rust/bin exec ci/run.sh $target "
59
59
}
60
60
61
- build_switch () {
62
- echo " Building docker container for target switch"
63
-
64
- # use -f so we can use ci/ as build context
65
- docker build -t libc-switch -f " ci/docker/switch/Dockerfile" ci/
66
- mkdir -p target
67
- if [ -w /dev/kvm ]; then
68
- kvm=" --volume /dev/kvm:/dev/kvm"
69
- else
70
- kvm=" "
71
- fi
72
-
73
- cp " $( command -v rustup) " " $( rustc --print sysroot) /bin"
74
-
75
- docker run \
76
- --rm \
77
- --user " $( id -u) " :" $( id -g) " \
78
- --env LIBC_CI \
79
- --env CARGO_HOME=/cargo \
80
- --env CARGO_TARGET_DIR=/checkout/target \
81
- --volume " $CARGO_HOME " :/cargo \
82
- --volume " $( rustc --print sysroot) " :/rust:ro \
83
- --volume " $( pwd) " :/checkout:ro \
84
- --volume " $( pwd) " /target:/checkout/target \
85
- --volume ~ /.rustup:/.rustup:Z \
86
- $kvm \
87
- --init \
88
- --workdir /checkout \
89
- libc-switch \
90
- sh -c " HOME=/tmp RUSTUP_HOME=/tmp PATH=\$ PATH:/rust/bin rustup default nightly \
91
- && rustup component add rust-src --target ci/switch.json \
92
- && cargo build -Z build-std=core,alloc --target ci/switch.json"
93
- }
94
-
95
61
if [ -z " $target " ]; then
62
+ # Run all docker targets
96
63
for d in ci/docker/* ; do
97
64
run " ${d} "
98
65
done
99
66
else
100
- if [ " $target " != " switch" ]; then
101
- run " $target "
102
- else
103
- build_switch
104
- fi
67
+ run " $target "
105
68
fi
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments