Skip to content

Commit

Permalink
ci: install protoc from sources
Browse files Browse the repository at this point in the history
ci: install protoc from sources

ci: install protoc from sources
  • Loading branch information
tsirysndr committed Jan 18, 2025
1 parent b327b4c commit 5ffaf38
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .fluentci/plugin/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ pub fn build(_arg: String) -> FnResult<String> {
"wget",
"zip",
"unzip",
"protobuf-compiler",
"cmake",
])?
.with_exec(vec![
Expand All @@ -42,6 +41,25 @@ pub fn build(_arg: String) -> FnResult<String> {
.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()?
Expand Down

0 comments on commit 5ffaf38

Please sign in to comment.