From 115ddc6c94656a0538c686f6acf5d3814f098bca Mon Sep 17 00:00:00 2001 From: Benjamin Bolte Date: Thu, 31 Oct 2024 23:19:41 -0700 Subject: [PATCH] asdf --- .github/workflows/publish.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c47baba..54e2947 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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"