Skip to content

Commit 35a1edc

Browse files
edmondopclaude
andcommitted
Fix cross-compile protoc and increase build timeout
- Add Cross.toml: installs protobuf-compiler inside the cross Docker containers used for Linux ARM64 builds (substrait/prost-build requires protoc at compile time, and the cross images don't include it) - Increase build-cli timeout from 15 → 45 minutes: adding substrait + DataFusion to the workspace significantly increases compile time on Windows and macOS ARM64 runners Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent f1f77a1 commit 35a1edc

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/build-cli.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ on:
2626
jobs:
2727
build-cli:
2828
name: Build compiler
29-
timeout-minutes: 15
29+
timeout-minutes: 45
3030
runs-on: ${{ inputs.os }}
3131
steps:
3232
- uses: actions/checkout@v2

Cross.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Cross.toml — configuration for cross-compilation via the `cross` tool.
2+
# The `pre-build` commands run inside the cross Docker container before cargo build.
3+
# This is needed because `substrait` (via prost-build) requires `protoc` at compile time,
4+
# but the cross Docker images don't include it by default.
5+
6+
[target.aarch64-unknown-linux-musl]
7+
pre-build = ["apt-get update && apt-get install -y protobuf-compiler"]
8+
9+
[target.aarch64-unknown-linux-gnu]
10+
pre-build = ["apt-get update && apt-get install -y protobuf-compiler"]

0 commit comments

Comments
 (0)