From 3ca1fef1daafe6b387ef606a9460f0a71f323426 Mon Sep 17 00:00:00 2001 From: Jan Range Date: Mon, 2 Dec 2024 16:27:02 +0100 Subject: [PATCH] add `openssl` workaround to TestPyPI --- .github/workflows/publish_test_pypi.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/publish_test_pypi.yml b/.github/workflows/publish_test_pypi.yml index 07af401..fc241f0 100644 --- a/.github/workflows/publish_test_pypi.yml +++ b/.github/workflows/publish_test_pypi.yml @@ -45,6 +45,20 @@ jobs: args: --release --out dist --find-interpreter --features python sccache: "true" manylinux: auto + before-script-linux: | + # If we're running on rhel centos, install needed packages. + if command -v yum &> /dev/null; then + yum update -y && yum install -y perl-core openssl openssl-devel pkgconfig libatomic + + # If we're running on i686 we need to symlink libatomic + # in order to build openssl with -latomic flag. + if [[ ! -d "/usr/lib64" ]]; then + ln -s /usr/lib/libatomic.so.1 /usr/lib/libatomic.so + fi + else + # If we're running on debian-based system. + apt update -y && apt-get install -y libssl-dev openssl pkg-config + fi - name: Upload wheels uses: actions/upload-artifact@v4 with: