Skip to content

Commit

Permalink
ci: fix protoc
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Jan 26, 2025
1 parent e509d68 commit 1d07559
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .fluentci/src/dagger/jobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@ export const build = async (src = ".") => {
"TARGET",
Deno.env.get("TARGET") || "x86_64-unknown-linux-gnu",
)
.withExec([
"sh",
"-c",
"mv /usr/bin/protoc /usr/bin/_protoc && cp tools/protoc /usr/bin/protoc && chmod a+x /usr/bin/protoc",
])
.withExec(["sh", "-c", "rustup target add $TARGET"])
.withExec(["sh", "-c", "cargo build --release --target $TARGET"])
.withExec(["sh", "-c", "cp target/${TARGET}/release/tunein ."])
Expand Down
2 changes: 2 additions & 0 deletions tools/protoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
_protoc --experimental_allow_proto3_optional "$@"

0 comments on commit 1d07559

Please sign in to comment.