From b49d1f3139da202742f5a3da7c69fa8dbb8d6670 Mon Sep 17 00:00:00 2001 From: Pete Gadomski Date: Mon, 21 Oct 2024 06:43:39 -0600 Subject: [PATCH] ci: try another way --- .github/workflows/python.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index f528d156..edd46a83 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -80,6 +80,20 @@ jobs: target: ${{ matrix.target }} manylinux: ${{ matrix.manylinux }} args: --release --out dist --interpreter ${{ matrix.interpreter || '3.8 3.9 3.10 3.11 3.12 3.13 pypy3.9 pypy3.10' }} --manifest-path python/Cargo.toml + 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: