Skip to content

Commit fc371bc

Browse files
committed
add protoc
1 parent 28c4353 commit fc371bc

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

dist-workspace.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,15 @@ targets = ["aarch64-apple-darwin", "aarch64-unknown-linux-gnu", "aarch64-pc-wind
1515
install-path = "CARGO_HOME"
1616
# Whether to install an updater program
1717
install-updater = true
18+
19+
# CI setup to install dependencies (including protoc)
20+
[dist.ci.github]
21+
install = [
22+
# Install protoc for Linux CI runners
23+
"if [[ \"$RUNNER_OS\" == \"Linux\" ]]; then sudo apt-get update && sudo apt-get install -y protobuf-compiler; fi",
24+
# Install protoc for macOS CI runners
25+
"if [[ \"$RUNNER_OS\" == \"macOS\" ]]; then brew install protobuf; fi",
26+
# Install protoc for Windows CI runners
27+
"if [[ \"$RUNNER_OS\" == \"Windows\" ]]; then choco install protoc; fi"
28+
]
29+

0 commit comments

Comments
 (0)