Skip to content

Commit df42c0a

Browse files
committed
Fix FreeBSD build
1 parent b9090e4 commit df42c0a

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Cross.toml

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
[target.x86_64-unknown-freebsd]
22
pre-build = [
33
"apt-get update",
4-
"apt install -y protobuf-compiler",
4+
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",
515
]

0 commit comments

Comments
 (0)