Skip to content

Commit 1d07559

Browse files
committed
ci: fix protoc
1 parent e509d68 commit 1d07559

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.fluentci/src/dagger/jobs.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,11 @@ export const build = async (src = ".") => {
116116
"TARGET",
117117
Deno.env.get("TARGET") || "x86_64-unknown-linux-gnu",
118118
)
119+
.withExec([
120+
"sh",
121+
"-c",
122+
"mv /usr/bin/protoc /usr/bin/_protoc && cp tools/protoc /usr/bin/protoc && chmod a+x /usr/bin/protoc",
123+
])
119124
.withExec(["sh", "-c", "rustup target add $TARGET"])
120125
.withExec(["sh", "-c", "cargo build --release --target $TARGET"])
121126
.withExec(["sh", "-c", "cp target/${TARGET}/release/tunein ."])

tools/protoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
_protoc --experimental_allow_proto3_optional "$@"

0 commit comments

Comments
 (0)