Skip to content

Commit 317a06f

Browse files
committed
Account for both CentOS and Debian containers
1 parent 5ddd502 commit 317a06f

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/pypi.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,20 @@ jobs:
4848
args: --release --out dist --find-interpreter
4949
sccache: 'true'
5050
manylinux: auto
51-
before-script-linux: yum install -y perl-IPC-Cmd
51+
before-script-linux: |
52+
# If we're running on rhel centos, install needed packages.
53+
if command -v yum &> /dev/null; then
54+
yum update -y && yum install -y perl-core openssl openssl-devel pkgconfig libatomic
55+
56+
# If we're running on i686 we need to symlink libatomic
57+
# in order to build openssl with -latomic flag.
58+
if [[ ! -d "/usr/lib64" ]]; then
59+
ln -s /usr/lib/libatomic.so.1 /usr/lib/libatomic.so
60+
fi
61+
else
62+
# If we're running on debian-based system.
63+
apt update -y && apt-get install -y libssl-dev openssl pkg-config
64+
fi
5265
- name: Upload wheels
5366
uses: actions/upload-artifact@v4
5467
with:

0 commit comments

Comments
 (0)