We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9090e4 commit df42c0aCopy full SHA for df42c0a
Cross.toml
@@ -1,5 +1,15 @@
1
[target.x86_64-unknown-freebsd]
2
pre-build = [
3
"apt-get update",
4
- "apt install -y protobuf-compiler",
+
5
+ # Protobuf version is too outdated on the cargo-cross image, which is ubuntu:20.04.
6
+ # "apt install -y protobuf-compiler",
7
8
+ "apt install -y wget libarchive-tools",
9
+ "mkdir /protoc",
10
+ "wget -qO- https://github.com/protocolbuffers/protobuf/releases/download/v29.2/protoc-29.2-linux-x86_64.zip | bsdtar -xvf- -C /protoc",
11
+ "mv -v /protoc/bin/protoc /usr/local/bin && chmod +x /usr/local/bin/protoc",
12
+ "mkdir -p /usr/local/include/google/protobuf/",
13
+ "mv -v /protoc/include/google/protobuf/* /usr/local/include/google/protobuf/",
14
+ "rm -rf /protoc",
15
]
0 commit comments