Skip to content

Commit 89ba93d

Browse files
easelclaude
andcommitted
fix(ci): install modern protoc in cross container for arm64 build
The Debian apt package for protobuf-compiler in the cross container is v2.6.1 which predates proto3 syntax. Download protoc 25.3 directly from GitHub releases instead. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 5c9c873 commit 89ba93d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Cross.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[target.aarch64-unknown-linux-gnu]
22
pre-build = [
3-
"apt-get update && apt-get install -y --no-install-recommends protobuf-compiler"
3+
"apt-get update && apt-get install -y --no-install-recommends curl unzip",
4+
"PROTOC_VERSION=25.3 && curl -fsSL -o /tmp/protoc.zip https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOC_VERSION}/protoc-${PROTOC_VERSION}-linux-x86_64.zip && unzip -q /tmp/protoc.zip -d /usr/local && rm /tmp/protoc.zip"
45
]

0 commit comments

Comments
 (0)