We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb91f7c commit bf1503bCopy full SHA for bf1503b
1 file changed
docker/install-basic-deps.sh
@@ -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