Skip to content

Commit 364e94d

Browse files
linggenclaude
andcommitted
ci: install protoc in CI + release runners
lance-encoding uses prost-build, which needs a system protoc at build time. Both workflows now install it before toolchain setup: ci.yml → apt-get install protobuf-compiler (Ubuntu runner) release.yml → conditional step: apt on Linux, brew on macOS; matches each matrix target's runner.os Without this, cargo clippy / cargo build fails with "Could not find `protoc`. … To install it on Debian, run `apt-get install protobuf-compiler`." (CI run 24740454924). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 53ad2c7 commit 364e94d

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v4
1818

19+
- name: install protoc
20+
# lance-encoding (via lancedb) uses prost-build and needs protoc.
21+
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler
22+
1923
- uses: dtolnay/rust-toolchain@stable
2024
with:
2125
components: clippy, rustfmt

.github/workflows/release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ jobs:
3333
with:
3434
ref: ${{ github.event.inputs.tag || github.ref }}
3535

36+
- name: install protoc (Linux)
37+
if: runner.os == 'Linux'
38+
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler
39+
40+
- name: install protoc (macOS)
41+
if: runner.os == 'macOS'
42+
run: brew install protobuf
43+
3644
- uses: dtolnay/rust-toolchain@stable
3745
with:
3846
targets: ${{ matrix.target }}

0 commit comments

Comments
 (0)