Skip to content

Commit 957d0f5

Browse files
committed
fix(release): handle missing dnf in aarch64 manylinux container
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
1 parent a7cca8e commit 957d0f5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,9 @@ jobs:
142142
manylinux: ${{ matrix.manylinux || 'auto' }}
143143
target: ${{ matrix.target }}
144144
before-script-linux: |
145-
dnf install -y protobuf-compiler
145+
command -v dnf && dnf install -y protobuf-compiler ||
146+
command -v yum && yum install -y protobuf-compiler ||
147+
command -v apt-get && apt-get install -y -q protobuf-compiler
146148
147149
- name: Upload wheels
148150
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4

0 commit comments

Comments
 (0)