Skip to content

Commit 384e7e7

Browse files
ci: add protoc installation for proto compilation
1 parent bcfa8fc commit 384e7e7

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,19 @@ jobs:
5151
with:
5252
targets: ${{ matrix.target }}
5353

54+
- name: Install protoc (Linux)
55+
if: runner.os == 'Linux'
56+
run: |
57+
sudo apt-get update
58+
sudo apt-get install -y protobuf-compiler
59+
60+
- name: Install protoc (macOS)
61+
if: runner.os == 'macOS'
62+
run: brew install protobuf
63+
5464
- name: Install cross-compilation tools
5565
if: matrix.cross
5666
run: |
57-
sudo apt-get update
5867
sudo apt-get install -y gcc-aarch64-linux-gnu
5968
echo "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc" >> $GITHUB_ENV
6069

0 commit comments

Comments
 (0)