From e6f17a0a706626b2dfed4c3321995e2afcec5781 Mon Sep 17 00:00:00 2001 From: Dmitry Prudnikov Date: Sun, 3 May 2026 04:25:48 +0300 Subject: [PATCH] fix(release): use if/else for protoc install, add apt-get update for aarch64 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The || chain causes both dnf and yum to run on x86_64 manylinux (AlmaLinux 8 has yum as alias for dnf) — both complete, then apt-get is tried and fails with 'command not found'. The aarch64 rust-cross container is Debian-based and requires apt-get update before install (stale package list = 404 errors). Use if/else: dnf for manylinux x86_64, apt-get for aarch64 cross. Closes #55 --- .github/workflows/release.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fef221f..5371345 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -142,9 +142,11 @@ jobs: manylinux: ${{ matrix.manylinux || 'auto' }} target: ${{ matrix.target }} before-script-linux: | - 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 + if command -v dnf >/dev/null 2>&1; then + dnf install -y protobuf-compiler + else + apt-get update -q && apt-get install -y -q protobuf-compiler + fi - name: Upload wheels uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4