Skip to content

Commit bf1503b

Browse files
committed
added missing script
1 parent fb91f7c commit bf1503b

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

docker/install-basic-deps.sh

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
5+
pip3 install maturin==1.8.7 patchelf cffi ziglang sccache>=0.4.0
6+
7+
curl -o rustup.sh --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs
8+
sh rustup.sh -y
9+
source $HOME/.cargo/env
10+
rustup update
11+
rustc -V
12+
13+
cargo install cargo-chef --locked
14+
15+
ARCH=$(uname -m)
16+
17+
PB_REL="https://github.com/protocolbuffers/protobuf/releases"
18+
19+
# x86_64
20+
if [ "$ARCH" = "x86_64" ]; then
21+
curl -LO $PB_REL/download/v3.15.8/protoc-3.15.8-linux-x86_64.zip
22+
elif [ "$ARCH" = "aarch64" ]; then
23+
curl -LO $PB_REL/download/v3.15.8/protoc-3.15.8-linux-aarch_64.zip
24+
else
25+
echo "Unsupported architecture $ARCH"
26+
exit 1
27+
fi
28+
29+
unzip *.zip
30+
cp bin/protoc /usr/bin
31+
chmod 755 /usr/bin/protoc

0 commit comments

Comments
 (0)