Skip to content

Commit cdc2ff1

Browse files
committed
Fix Linux CI builds by installing OpenSSL
1 parent d1a0e8c commit cdc2ff1

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

.github/workflows/release_pypi.yaml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,23 @@ jobs:
4646
CIBW_ARCHS_LINUX: x86_64 i686
4747
CIBW_ARCHS_WINDOWS: AMD64 x86
4848
CIBW_ARCHS_MACOS: x86_64 arm64
49-
CIBW_BEFORE_ALL_LINUX: curl -sSf https://sh.rustup.rs | sh -s -- -y
50-
CIBW_BEFORE_ALL_MACOS: curl -sSf https://sh.rustup.rs | sh -s -- -y
49+
CIBW_BEFORE_ALL_LINUX: |
50+
curl -sSf https://sh.rustup.rs | sh -s -- -y
51+
# From https://github.com/Intreecom/scyllapy/blob/05fdab32dd7468c26533de5fdfe9627fa3e38445/.github/workflows/release.yaml#L38
52+
if command -v yum &> /dev/null; then
53+
yum update -y && yum install -y perl-core openssl openssl-devel pkgconfig libatomic
54+
55+
# If we're running on i686 we need to symlink libatomic
56+
# in order to build openssl with -latomic flag.
57+
if [[ ! -d "/usr/lib64" ]]; then
58+
ln -s /usr/lib/libatomic.so.1 /usr/lib/libatomic.so
59+
fi
60+
elif command -v apt &> /dev/null; then
61+
apt update -y && apt-get install -y libssl-dev openssl pkg-config
62+
fi
63+
CIBW_BEFORE_ALL_MACOS: |
64+
curl -sSf https://sh.rustup.rs | sh -s -- -y
65+
rustup target add aarch64-apple-darwin x86_64-apple-darwin
5166
CIBW_BEFORE_ALL_WINDOWS: rustup target add i686-pc-windows-msvc
5267
CIBW_BEFORE_BUILD: pip install setuptools-rust
5368
CIBW_ENVIRONMENT: PATH="$HOME/.cargo/bin:$PATH"

0 commit comments

Comments
 (0)