File tree Expand file tree Collapse file tree 3 files changed +27
-2
lines changed Expand file tree Collapse file tree 3 files changed +27
-2
lines changed Original file line number Diff line number Diff line change @@ -30,10 +30,16 @@ jobs:
30
30
with :
31
31
python-version : ' 3.10'
32
32
33
+ - name : 🔧 Install Protobuf Compiler
34
+ run : |
35
+ sudo apt-get update
36
+ sudo apt-get install -y protobuf-compiler
37
+ protoc --version
38
+
33
39
- name : 📦 Install build dependencies
34
40
run : |
35
41
python -m pip install --upgrade pip
36
- pip install build twine grpcio-tools grpclib
42
+ pip install build twine grpclib protobuf
37
43
38
44
- name : 🔨 Generate protobuf files
39
45
run : |
Original file line number Diff line number Diff line change @@ -32,10 +32,16 @@ jobs:
32
32
with :
33
33
python-version : ' 3.10'
34
34
35
+ - name : 🔧 Install Protobuf Compiler
36
+ run : |
37
+ sudo apt-get update
38
+ sudo apt-get install -y protobuf-compiler
39
+ protoc --version
40
+
35
41
- name : 📦 Install build dependencies
36
42
run : |
37
43
python -m pip install --upgrade pip
38
- pip install build twine grpcio-tools grpclib
44
+ pip install build twine grpclib protobuf
39
45
40
46
- name : 🔨 Generate protobuf files
41
47
run : |
Original file line number Diff line number Diff line change @@ -11,6 +11,19 @@ echo "================================================"
11
11
# Ensure we're in the right directory
12
12
cd " $( dirname " $0 " ) "
13
13
14
+ # Check if protoc is installed
15
+ if ! command -v protoc & > /dev/null; then
16
+ echo " ERROR: protoc (Protocol Buffer compiler) is not installed!"
17
+ echo " "
18
+ echo " Please install it using one of these methods:"
19
+ echo " - macOS: brew install protobuf"
20
+ echo " - Ubuntu/Debian: sudo apt-get install protobuf-compiler"
21
+ echo " - Other: https://grpc.io/docs/protoc-installation/"
22
+ exit 1
23
+ fi
24
+
25
+ echo " Found protoc: $( protoc --version) "
26
+
14
27
# Install required tools
15
28
echo " Installing required tools..."
16
29
pip3 install -q protobuf grpclib
You can’t perform that action at this time.
0 commit comments