From db87ee1d416106048b20dc3ae59590901d48d845 Mon Sep 17 00:00:00 2001 From: Fabian Murariu Date: Mon, 15 Jul 2024 16:15:19 +0100 Subject: [PATCH 1/3] try to convince maturin to install protobuf --- .github/workflows/_release_python.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/_release_python.yml b/.github/workflows/_release_python.yml index 0160cad14..ee30c29a7 100644 --- a/.github/workflows/_release_python.yml +++ b/.github/workflows/_release_python.yml @@ -101,6 +101,7 @@ jobs: echo "Could not determine distribution." exit 1 fi + pip install protobuf ARCH=$(uname -m) if [ "$ARCH" = "aarch64" ]; then echo "Running on aarch64 architecture" From f3dd3804ae047053fbe45ee42b107d9042d219f4 Mon Sep 17 00:00:00 2001 From: Fabian Murariu Date: Mon, 15 Jul 2024 16:42:17 +0100 Subject: [PATCH 2/3] try to convince maturin to install protobuf a second time around --- .github/workflows/_release_python.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/_release_python.yml b/.github/workflows/_release_python.yml index ee30c29a7..d200062c6 100644 --- a/.github/workflows/_release_python.yml +++ b/.github/workflows/_release_python.yml @@ -101,14 +101,22 @@ jobs: echo "Could not determine distribution." exit 1 fi - pip install protobuf + + 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: From b3d1ec6ed29c8f20eab64e3b66a270d0301ec627 Mon Sep 17 00:00:00 2001 From: Fabian Murariu Date: Mon, 15 Jul 2024 16:53:52 +0100 Subject: [PATCH 3/3] install unzip --- .github/workflows/_release_python.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/_release_python.yml b/.github/workflows/_release_python.yml index d200062c6..9c045b345 100644 --- a/.github/workflows/_release_python.yml +++ b/.github/workflows/_release_python.yml @@ -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"