Skip to content

Commit 5244678

Browse files
committed
Debug linux finding openssl headers
1 parent 6221bab commit 5244678

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/pypi.yaml

+20
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ jobs:
5555
# used to build the wheels.
5656
# Note: libatomic is necessary for the build to succeed.
5757
before-script-linux: |
58+
set -ex
59+
5860
# If we're running on rhel centos, install needed packages.
5961
if command -v yum &> /dev/null; then
6062
yum update -y && yum install -y perl-core openssl openssl-devel pkgconfig libatomic
@@ -64,10 +66,28 @@ jobs:
6466
if [[ ! -d "/usr/lib64" ]]; then
6567
ln -s /usr/lib/libatomic.so.1 /usr/lib/libatomic.so
6668
fi
69+
70+
OPENSSL_LIB_DIR=/usr/lib
6771
else
6872
# If we're running on debian-based system.
6973
apt update -y && apt-get install -y libssl-dev openssl pkg-config
74+
75+
OPENSSL_LIB_DIR=/usr/lib/x86_64-linux-gnu
7076
fi
77+
78+
export OPENSSL_INCLUDE_DIR=/usr/include/openssl
79+
80+
ls $OPENSSL_LIB_DIR
81+
ls $OPENSSL_INCLUDE_DIR
82+
ls /usr/lib
83+
ls /usr/lib/x86_64-linux-gnu
84+
ls /usr/lib64
85+
86+
87+
echo "OpenSSL Lib Dir: $OPENSSL_LIB_DIR"
88+
echo "OpenSSL Include Dir: $OPENSSL_INCLUDE_DIR"
89+
90+
pkg-config --libs --cflags openssl
7191
# END EDITED SECTION #
7292
- name: Upload wheels
7393
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)