Skip to content

Commit 3db43e3

Browse files
committed
build: bundle protoc via protoc-bin-vendored to fix CI build
1 parent 759902c commit 3db43e3

3 files changed

Lines changed: 68 additions & 0 deletions

File tree

‎native/Cargo.lock‎

Lines changed: 65 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎native/Cargo.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,4 @@ tokio = { version = "1", features = ["rt-multi-thread"] }
3434

3535
[build-dependencies]
3636
prost-build = "0.14"
37+
protoc-bin-vendored = "3"

‎native/build.rs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717

1818
fn main() {
1919
println!("cargo:rerun-if-changed=../proto/session_options.proto");
20+
let protoc = protoc_bin_vendored::protoc_bin_path().expect("vendored protoc not available");
21+
std::env::set_var("PROTOC", protoc);
2022
prost_build::compile_protos(&["../proto/session_options.proto"], &["../proto"])
2123
.expect("failed to compile session_options.proto");
2224
}

0 commit comments

Comments
 (0)