Skip to content

Commit 2673b9d

Browse files
randclaude
andcommitted
fix: handle both yum and apt-get in manylinux before-script
The aarch64 cross-compilation container uses a Debian-based image (apt-get) while the x86_64 manylinux2014 container uses CentOS (yum). Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent f7c2136 commit 2673b9d

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,12 @@ jobs:
4242
target: ${{ matrix.target }}
4343
args: --release --out dist
4444
manylinux: auto
45-
before-script-linux: yum install -y openssl-devel perl-IPC-Cmd
45+
before-script-linux: |
46+
if command -v yum &>/dev/null; then
47+
yum install -y openssl-devel perl-IPC-Cmd
48+
elif command -v apt-get &>/dev/null; then
49+
apt-get update && apt-get install -y libssl-dev pkg-config
50+
fi
4651
4752
- name: Upload wheel artifact
4853
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)