Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix release #1693

Merged
merged 3 commits into from
Jul 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 15 additions & 6 deletions .github/workflows/_release_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,32 +65,32 @@ jobs:
ubuntu)
echo "Installing openssl-dev on Ubuntu..."
apt update -y
apt install -y pkg-config libssl-dev libc6 build-essential musl-tools
apt install -y pkg-config libssl-dev libc6 build-essential musl-tools unzip
;;
arch)
echo "Installing openssl-dev on Arch Linux..."
pacman -Syu --noconfirm pkg-config openssl musl
pacman -Syu --noconfirm pkg-config openssl musl unzip
;;
fedora)
echo "Installing openssl-dev on Fedora..."
dnf update -y
dnf install -y pkg-config openssl-devel musl
dnf install -y pkg-config openssl-devel musl unzip
;;
alpine)
echo "Installing openssl-dev on Alpine Linux..."
apk update -y
apk add pkgconfig openssl-dev musl-dev
apk add pkgconfig openssl-dev musl-dev unzip
;;
centos)
echo "Installing openssl-dev on CentOS..."
yum update -y
yum install -y pkgconfig openssl-devel
yum install -y pkgconfig openssl-devel unzip
;;
almalinux)
echo "Installing openssl-dev on almalinux..."
dnf update -y
dnf group install -y 'Development Tools'
dnf install -y pkg-config openssl-devel
dnf install -y pkg-config openssl-devel unzip
;;
*)
echo "Unsupported distribution: $ID"
Expand All @@ -101,13 +101,22 @@ jobs:
echo "Could not determine distribution."
exit 1
fi
PB_REL="https://github.com/protocolbuffers/protobuf/releases"
ARCH=$(uname -m)
if [ "$ARCH" = "aarch64" ]; then
echo "Running on aarch64 architecture"
rustup override set stable-msvc
FILE="protoc-27.2-linux-aarch_64.zip"
else
FILE="protoc-27.2-linux-x86_64.zip"
echo "Running on non-aarch64 architecture"
fi
curl -LO $PB_REL/download/v27.2/$FILE
unzip -o $FILE -d /usr/local
rm $FILE
ln -s /usr/local/bin/protoc /usr/bin/protoc
- name: Upload wheels to gh artifact
uses: actions/upload-artifact@v3
with:
Expand Down
Loading