Skip to content

Commit

Permalink
fix protoc install ?
Browse files Browse the repository at this point in the history
  • Loading branch information
alik-git committed Dec 19, 2024
1 parent 9eae948 commit 2b99b25
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,21 @@ jobs:
pip install cibuildwheel
shell: bash

- name: Build package
env:
CIBW_SKIP: "pp* *-musllinux*" # Skip PyPy and musllinux builds
CIBW_BEFORE_ALL_LINUX: |
- name: Install Protoc
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
curl -L https://github.com/protocolbuffers/protobuf/releases/download/v28.3/protoc-28.3-linux-x86_64.zip -o protoc.zip
unzip protoc.zip -d protoc
mv protoc/bin/protoc /usr/local/bin/protoc
mv protoc/include/google /usr/local/include/google
CIBW_BEFORE_ALL_MACOS: |
sudo mv protoc/bin/protoc /usr/local/bin/protoc
sudo mv protoc/include/google /usr/local/include/google
elif [ "$RUNNER_OS" == "macOS" ]; then
brew install protobuf
fi
shell: bash

- name: Build package
env:
CIBW_SKIP: "pp* *-musllinux*" # Skip PyPy and musllinux builds
CIBW_ARCHS_LINUX: auto aarch64 ppc64le s390x
CIBW_QEMU: "true"
CIBW_BEFORE_BUILD: |
Expand All @@ -56,6 +61,7 @@ jobs:
CIBW_ENVIRONMENT: |
PATH="/usr/local/bin:$HOME/.cargo/bin:$PATH"
CARGO_NET_GIT_FETCH_WITH_CLI=true
PROTOC="/usr/local/bin/protoc"
run: |
cibuildwheel --output-dir dist
Expand Down
Binary file added krecviz/my_animaption.rrd
Binary file not shown.

0 comments on commit 2b99b25

Please sign in to comment.