Skip to content

Commit e3acb8a

Browse files
committed
ci: Remove support for testing the Nintendo Switch
This has been unused since 6ca5bfa ("Setup Azure Pipelines"), and the docker image hasn't been updated for two years anyway.
1 parent f337b30 commit e3acb8a

File tree

3 files changed

+2
-75
lines changed

3 files changed

+2
-75
lines changed

ci/docker/switch/Dockerfile

Lines changed: 0 additions & 9 deletions
This file was deleted.

ci/run-docker.sh

Lines changed: 2 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -58,48 +58,11 @@ run() {
5858
sh -c "HOME=/tmp PATH=\$PATH:/rust/bin exec ci/run.sh $target"
5959
}
6060

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-
9561
if [ -z "$target" ]; then
62+
# Run all docker targets
9663
for d in ci/docker/*; do
9764
run "${d}"
9865
done
9966
else
100-
if [ "$target" != "switch" ]; then
101-
run "$target"
102-
else
103-
build_switch
104-
fi
67+
run "$target"
10568
fi

ci/switch.json

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)