From 957d0f5e82bd601b2e7c2457c2e1804ce2fd63e4 Mon Sep 17 00:00:00 2001 From: Dmitry Prudnikov Date: Sun, 3 May 2026 02:36:28 +0300 Subject: [PATCH] fix(release): handle missing dnf in aarch64 manylinux container MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The aarch64 manylinux_2_28 container does not expose dnf in PATH, causing before-script to exit 127. Fall through dnf→yum→apt-get so protoc installs regardless of which package manager is available. Closes #52 --- .github/workflows/release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0b54b7e..fef221f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -142,7 +142,9 @@ jobs: manylinux: ${{ matrix.manylinux || 'auto' }} target: ${{ matrix.target }} before-script-linux: | - dnf install -y protobuf-compiler + command -v dnf && dnf install -y protobuf-compiler || + command -v yum && yum install -y protobuf-compiler || + command -v apt-get && apt-get install -y -q protobuf-compiler - name: Upload wheels uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4