diff --git a/.fluentci/plugin/src/lib.rs b/.fluentci/plugin/src/lib.rs index 3acd2349d2..81fe9896f6 100644 --- a/.fluentci/plugin/src/lib.rs +++ b/.fluentci/plugin/src/lib.rs @@ -26,7 +26,6 @@ pub fn build(_arg: String) -> FnResult { "wget", "zip", "unzip", - "protobuf-compiler", "cmake", ])? .with_exec(vec![ @@ -42,6 +41,25 @@ pub fn build(_arg: String) -> FnResult { .with_exec(vec!["deno", "run", "build"])? .stdout()?; + // download & install protoc + dag() + .pipeline("protoc")? + .pkgx()? + .with_exec(vec![ + "git", + "clone", + "https://github.com/protocolbuffers/protobuf", + ])? + .with_exec(vec![ + "cd protobuf &&", + "git checkout v29.2 &&", + "git submodule update --init --recursive &&", + "mkdir build &&". + "cd build &&", + "cmake .. && sudo make install -j$(nproc)", + ])? + .stdout()?; + dag() .pipeline("mkdir")? .pkgx()?