Something went wrong. Try again.
A Forgejo Runner plugin that spawn jobs as Kubernetes pods
kubernetes ci forgejo runner
Something went wrong. Try again.
12345678910111213141516171819202122use std::{env, error::Error};
fn main() -> Result<(), Box<dyn Error>> { println!("cargo:rerun-if-changed=proto/plugin.proto");
// Keep builds reproducible: CI and the final image do not need a host protoc installation. let protoc = protoc_bin_vendored::protoc_bin_path()?; let include = protoc_bin_vendored::include_path()?; // Safety: we don't care here unsafe { env::set_var("PROTOC", protoc); env::set_var("PROTOC_INCLUDE", include); }
tonic_prost_build::configure() .build_client(true) .build_server(true) .compile_protos(&["proto/plugin.proto"], &["proto"])?;
Ok(())}