Skip to content

Commit 15fec51

Browse files
fix: add protoc for musl build (#397)
1 parent 7a94a54 commit 15fec51

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,14 @@ jobs:
8989
unzip protoc-21.12-linux-x86_64.zip -d protoc
9090
sudo cp protoc/bin/protoc /usr/local/bin/
9191
sudo cp -r protoc/include/google /usr/local/include/
92+
93+
- name: Install Protoc for musl
94+
if: contains(matrix.arch, 'linux') && endsWith(matrix.arch, '-musl')
95+
run: | # Make sure the protoc is >= 3.15
96+
wget https://github.com/protocolbuffers/protobuf/releases/download/v21.12/protoc-21.12-linux-x86_64.zip
97+
unzip protoc-21.12-linux-x86_64.zip -d protoc
98+
sudo cp protoc/bin/protoc /usr/local/bin/
99+
sudo cp -r protoc/include/google /usr/local/include/
92100
93101
- name: Install Protoc for windows
94102
if: contains(matrix.arch, 'windows')

0 commit comments

Comments
 (0)