1
1
name : Build
2
2
3
3
on :
4
+ pull_request :
4
5
push :
5
6
branches :
6
7
- main
18
19
matrix :
19
20
target : [x86_64, aarch64]
20
21
steps :
21
- - uses : actions/checkout@v3
22
+ - uses : actions/checkout@v4
22
23
- uses : actions/setup-python@v4
23
24
with :
24
25
python-version : " 3.10"
35
36
args : --release --out dist --find-interpreter
36
37
sccache : " true"
37
38
manylinux : ${{ matrix.target == 'aarch64' && 'manylinux_2_28' || 'auto' }}
38
- before-script-linux : " pip install uniffi-bindgen==0.24.1"
39
+ before-script-linux : |
40
+ pip install uniffi-bindgen==0.24.1
41
+
42
+ # ISSUE: https://github.com/sfackler/rust-openssl/issues/2036#issuecomment-1724324145
43
+ # If we're running on rhel centos, install needed packages.
44
+ if command -v yum &> /dev/null; then
45
+ yum update -y && yum install -y perl-core openssl openssl-devel pkgconfig libatomic
46
+
47
+ # If we're running on i686 we need to symlink libatomic
48
+ # in order to build openssl with -latomic flag.
49
+ if [[ ! -d "/usr/lib64" ]]; then
50
+ ln -s /usr/lib/libatomic.so.1 /usr/lib/libatomic.so
51
+ fi
52
+ else
53
+ # If we're running on debian-based system.
54
+ apt update -y && apt-get install -y libssl-dev openssl pkg-config
55
+ fi
56
+
39
57
- name : Upload wheels
40
58
uses : actions/upload-artifact@v3
41
59
with :
48
66
matrix :
49
67
target : [x64, x86]
50
68
steps :
51
- - uses : actions/checkout@v3
69
+ - uses : actions/checkout@v4
52
70
- uses : actions/setup-python@v4
53
71
with :
54
72
python-version : ' 3.10'
70
88
macos_x86 :
71
89
runs-on : macos-latest
72
90
steps :
73
- - uses : actions/checkout@v3
91
+ - uses : actions/checkout@v4
74
92
- uses : actions/setup-python@v4
75
93
with :
76
94
python-version : ' 3.10'
91
109
macos_aarch64 :
92
110
runs-on : macos-latest-large
93
111
steps :
94
- - uses : actions/checkout@v3
112
+ - uses : actions/checkout@v4
95
113
- uses : actions/setup-python@v4
96
114
with :
97
115
python-version : ' 3.10'
@@ -112,7 +130,7 @@ jobs:
112
130
sdist :
113
131
runs-on : ubuntu-latest
114
132
steps :
115
- - uses : actions/checkout@v3
133
+ - uses : actions/checkout@v4
116
134
- name : Build sdist
117
135
uses : PyO3/maturin-action@v1
118
136
with :
0 commit comments