Skip to content

Commit fcc942e

Browse files
doublegateclaude
andcommitted
fix(ci): add Cross.toml to install protoc in cross Docker containers
After the cargo clean fix resolved the GLIBC mismatch, cross builds now compile from scratch inside Docker containers which lack protobuf-compiler. Add Cross.toml with pre-build hooks for aarch64-unknown-linux-gnu and x86_64-unknown-linux-musl targets to install protoc before building. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 5300518 commit fcc942e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Cross.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Cross-compilation configuration for cross-rs
2+
# See: https://github.com/cross-rs/cross/wiki/Configuration
3+
#
4+
# Installs protobuf-compiler inside Docker containers so prost-build
5+
# can compile .proto files during cross-compilation builds.
6+
7+
[target.aarch64-unknown-linux-gnu]
8+
pre-build = ["apt-get update && apt-get install -y protobuf-compiler"]
9+
10+
[target.x86_64-unknown-linux-musl]
11+
pre-build = ["apt-get update && apt-get install -y protobuf-compiler"]

0 commit comments

Comments
 (0)