Skip to content

Commit f34324e

Browse files
committed
installs in docker, not deb
1 parent 6ba5b7a commit f34324e

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.github/workflows/maturin_builds.yml

+15-2
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,28 @@ jobs:
3030
- uses: actions/setup-python@v5
3131
with:
3232
python-version: 3.x
33-
- name: Install Build Dependencies
34-
run: sudo apt-get update && sudo apt-get install perl
3533
- name: Build wheels
3634
uses: PyO3/maturin-action@v1
3735
with:
3836
target: ${{ matrix.platform.target }}
3937
args: --release --out dist --find-interpreter
4038
sccache: 'true'
4139
manylinux: auto
40+
before-script-linux: |
41+
# Credits to https://github.com/Intreecom/scyllapy/blob/develop/.github/workflows/release.yaml
42+
# If we're running on rhel centos, install needed packages.
43+
if command -v yum &> /dev/null; then
44+
yum update -y && yum install -y perl-core openssl openssl-devel pkgconfig libatomic
45+
46+
# If we're running on i686 we need to symlink libatomic
47+
# in order to build openssl with -latomic flag.
48+
if [[ ! -d "/usr/lib64" ]]; then
49+
ln -s /usr/lib/libatomic.so.1 /usr/lib/libatomic.so
50+
fi
51+
else
52+
# If we're running on debian-based system.
53+
apt update -y && apt-get install -y libssl-dev openssl pkg-config
54+
fi
4255
- name: Upload wheels
4356
uses: actions/upload-artifact@v4
4457
with:

0 commit comments

Comments
 (0)