Skip to content

Commit

Permalink
asdf
Browse files Browse the repository at this point in the history
  • Loading branch information
codekansas committed Nov 1, 2024
1 parent e2989e0 commit 115ddc6
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,24 @@ jobs:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source $HOME/.cargo/env
pip install setuptools-rust
if [ "${{ runner.os }}" == "Linux" ]; then
sudo apt-get update
sudo apt-get install -y protobuf-compiler
sudo apt-get install -y unzip
PROTOC_ZIP=protoc-25.1-linux-x86_64.zip
elif [ "${{ runner.os }}" == "macOS" ]; then
brew install protobuf
brew install unzip
PROTOC_ZIP=protoc-25.1-osx-x86_64.zip
else
echo "Unsupported OS: ${{ runner.os }}"
exit 1
fi
curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v25.1/$PROTOC_ZIP
sudo unzip -o $PROTOC_ZIP -d /usr/local bin/protoc
sudo unzip -o $PROTOC_ZIP -d /usr/local 'include/*'
rm -f $PROTOC_ZIP
/usr/local/bin/protoc --version
CIBW_ENVIRONMENT: |
PATH="/usr/local/bin:$HOME/.cargo/bin:$PATH"
Expand Down

0 comments on commit 115ddc6

Please sign in to comment.