Skip to content

Commit b7aefaf

Browse files
committed
Install OpenSSL headers for manylinux wheels
1 parent 942bec7 commit b7aefaf

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,20 @@ jobs:
3737
maturin-version: v1.13.1
3838
target: ${{ matrix.target }}
3939
manylinux: "2014"
40+
before-script-linux: |
41+
if command -v yum >/dev/null 2>&1; then
42+
yum install -y openssl-devel
43+
elif command -v dnf >/dev/null 2>&1; then
44+
dnf install -y openssl-devel
45+
elif command -v apt-get >/dev/null 2>&1; then
46+
apt-get update
47+
apt-get install -y libssl-dev
48+
elif command -v apk >/dev/null 2>&1; then
49+
apk add --no-cache openssl-dev
50+
else
51+
echo "No supported package manager found to install OpenSSL headers" >&2
52+
exit 1
53+
fi
4054
args: --release --locked --compatibility pypi --out dist --no-default-features --features python,openblas-static -i python${{ matrix.python-version }}
4155

4256
- name: Upload wheel artifact

0 commit comments

Comments
 (0)