Fix build script to use vendored protoc binary for CI

This commit is contained in:
jasonwitty 2025-09-04 05:52:57 -07:00
parent e7350f8908
commit 9c1416eabf

View File

@ -1,4 +1,10 @@
fn main() -> Result<(), Box<dyn std::error::Error>> {
// Set the protoc binary path to use the vendored version for CI compatibility
// SAFETY: We're only setting PROTOC in a build script environment, which is safe
unsafe {
std::env::set_var("PROTOC", protoc_bin_vendored::protoc_bin_path()?);
}
prost_build::compile_protos(&["processes.proto"], &["."])?;
Ok(())
}