Skip to content

Commit

Permalink
Add arm script for protoc install
Browse files Browse the repository at this point in the history
  • Loading branch information
scsmithr committed Nov 14, 2024
1 parent f8d528e commit 48208da
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ jobs:
- name: Maturin build
uses: PyO3/maturin-action@v1
with:
before-script-linux: "../../scripts/install_protoc_linux.sh" # Relative to working dir
before-script-linux: "../../scripts/install_protoc_linux_arm.sh" # Relative to working dir
args: --release --out dist
working-directory: crates/rayexec_python
manylinux: 'auto'
Expand Down
10 changes: 10 additions & 0 deletions scripts/install_protoc_linux_arm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash

set -xeuo pipefail

# manylinux2014-cross:aarch doesn't have unzip, install it.
apt-get update && apt-get install unzip

curl -L "https://github.com/protocolbuffers/protobuf/releases/download/v23.1/protoc-23.1-linux-aarch_64.zip" -o protoc.zip
unzip -o protoc.zip
mv bin/protoc /bin

0 comments on commit 48208da

Please sign in to comment.