Skip to content

Commit

Permalink
Debug linux finding openssl headers
Browse files Browse the repository at this point in the history
  • Loading branch information
anoadragon453 committed May 2, 2024
1 parent 6221bab commit 024b203
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ jobs:
# used to build the wheels.
# Note: libatomic is necessary for the build to succeed.
before-script-linux: |
set -ex
# 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
Expand All @@ -64,10 +66,26 @@ jobs:
if [[ ! -d "/usr/lib64" ]]; then
ln -s /usr/lib/libatomic.so.1 /usr/lib/libatomic.so
fi
OPENSSL_LIB_DIR=/usr/lib
else
# If we're running on debian-based system.
apt update -y && apt-get install -y libssl-dev openssl pkg-config
OPENSSL_LIB_DIR=/usr/lib/x86_64-linux-gnu
fi
export OPENSSL_INCLUDE_DIR=/usr/include/openssl
ls $OPENSSL_LIB_DIR
ls $OPENSSL_INCLUDE_DIR
echo "OpenSSL Lib Dir: $OPENSSL_LIB_DIR"
echo "OpenSSL Include Dir: $OPENSSL_INCLUDE_DIR"
pkg-config --list-all
pkg-config --libs --cflags openssl
# END EDITED SECTION #
- name: Upload wheels
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 024b203

Please sign in to comment.