Skip to content

Commit f94e3fd

Browse files
committedFeb 19, 2025·
use protoc directly from prebuild binaries
1 parent 30764cf commit f94e3fd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed
 

‎Cross.toml

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
[build]
22
pre-build = [
33
"dpkg --add-architecture $CROSS_DEB_ARCH",
4-
"apt-get update && apt-get install --assume-yes libssl-dev:$CROSS_DEB_ARCH libdbus-1-dev:$CROSS_DEB_ARCH protobuf-compiler libprotobuf-dev"
4+
"apt-get update && apt-get install --assume-yes libssl-dev:$CROSS_DEB_ARCH libdbus-1-dev:$CROSS_DEB_ARCH pkg-config unzip curl",
5+
"ARCH=$(case $CROSS_DEB_ARCH in aarch64-linux-gnu) echo linux-aarch_64 ;; x86_64-linux-gnu) echo linux-x86_64 ;; *) echo linux-x86_64 ;; esac)",
6+
"PB_REL=\"https://github.com/protocolbuffers/protobuf/releases\"",
7+
"curl -LO $PB_REL/download/v29.3/protoc-29.3-${ARCH}.zip",
8+
"unzip protoc-29.3-${ARCH}.zip -d $HOME/.local",
9+
"export PATH=\"$PATH:$HOME/.local/bin\"",
10+
"protoc --version"
511
]
612

0 commit comments

Comments
 (0)
Please sign in to comment.