File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments