Skip to content

Commit a420434

Browse files
committed
Expand pkg build
1 parent 9530f0e commit a420434

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,22 @@ jobs:
3838
manylinux: ${{ matrix.target == 'aarch64' && 'manylinux_2_28' || 'auto' }}
3939
before-script-linux: |
4040
pip install uniffi-bindgen==0.24.1
41-
# https://github.com/sfackler/rust-openssl/issues/2036#issuecomment-1724324145
42-
apt update -y && apt-get install -y libssl-dev openssl pkg-config
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+
4357
- name: Upload wheels
4458
uses: actions/upload-artifact@v3
4559
with:

0 commit comments

Comments
 (0)