solstice-ci/crates/common/build.rs
Till Wegmueller 855aecbb10
Add gRPC support for VM runner log streaming and orchestrator integration
This commit introduces gRPC-based log streaming between the VM runner (`solstice-runner`) and orchestrator. Key updates include:
- Implemented gRPC server in the orchestrator for receiving and processing runner logs.
- Added log streaming and job result reporting in the `solstice-runner` client.
- Defined `runner.proto` with messages (`LogItem`, `JobEnd`) and the `Runner` service.
- Updated orchestrator to accept gRPC settings and start the server.
- Modified cloud-init user data to include gRPC endpoint and request ID for runners.
- Enhanced message queue logic to handle job results via `publish_job_result`.
- Configured `Cross.toml` for cross-compilation of the runner.
2025-11-01 12:14:50 +01:00

8 lines
300 B
Rust

fn main() {
// Compile gRPC protobufs for Runner <-> Orchestrator
println!("cargo:rerun-if-changed=proto/runner.proto");
tonic_build::configure()
.build_server(true)
.compile_protos(&["proto/runner.proto"], &["proto"])
.expect("failed to compile runner proto");
}