Skip to content

Commit 069b258

Browse files
committed
Update build scripts
1 parent 8cacdb7 commit 069b258

File tree

3 files changed

+27
-2
lines changed

3 files changed

+27
-2
lines changed

.github/workflows/publish-release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,16 @@ jobs:
3030
with:
3131
python-version: '3.10'
3232

33+
- name: 🔧 Install Protobuf Compiler
34+
run: |
35+
sudo apt-get update
36+
sudo apt-get install -y protobuf-compiler
37+
protoc --version
38+
3339
- name: 📦 Install build dependencies
3440
run: |
3541
python -m pip install --upgrade pip
36-
pip install build twine grpcio-tools grpclib
42+
pip install build twine grpclib protobuf
3743
3844
- name: 🔨 Generate protobuf files
3945
run: |

.github/workflows/publish-testpypi.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,16 @@ jobs:
3232
with:
3333
python-version: '3.10'
3434

35+
- name: 🔧 Install Protobuf Compiler
36+
run: |
37+
sudo apt-get update
38+
sudo apt-get install -y protobuf-compiler
39+
protoc --version
40+
3541
- name: 📦 Install build dependencies
3642
run: |
3743
python -m pip install --upgrade pip
38-
pip install build twine grpcio-tools grpclib
44+
pip install build twine grpclib protobuf
3945
4046
- name: 🔨 Generate protobuf files
4147
run: |

build_for_pypi.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,19 @@ echo "================================================"
1111
# Ensure we're in the right directory
1212
cd "$(dirname "$0")"
1313

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+
1427
# Install required tools
1528
echo "Installing required tools..."
1629
pip3 install -q protobuf grpclib

0 commit comments

Comments
 (0)