File tree 1 file changed +15
-2
lines changed
1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -30,15 +30,28 @@ jobs:
30
30
- uses : actions/setup-python@v5
31
31
with :
32
32
python-version : 3.x
33
- - name : Install Build Dependencies
34
- run : sudo apt-get update && sudo apt-get install perl
35
33
- name : Build wheels
36
34
uses : PyO3/maturin-action@v1
37
35
with :
38
36
target : ${{ matrix.platform.target }}
39
37
args : --release --out dist --find-interpreter
40
38
sccache : ' true'
41
39
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
42
55
- name : Upload wheels
43
56
uses : actions/upload-artifact@v4
44
57
with :
You can’t perform that action at this time.
0 commit comments