Skip to content

Commit

Permalink
add openssl workaround to TestPyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
JR-1991 committed Dec 2, 2024
1 parent 5dc2a3b commit 3ca1fef
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/publish_test_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3ca1fef

Please sign in to comment.