Skip to content

Commit

Permalink
try to fix openssl again (x11)
Browse files Browse the repository at this point in the history
  • Loading branch information
azmyrajab committed Mar 22, 2024
1 parent f8b8138 commit b50db5b
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/publish_to_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,6 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Find and set OpenSSL directory
run: |
OPENSSL_INCLUDE_DIR=$(dpkg-query -L libssl-dev | grep '/include/openssl$' | head -n 1)
echo "OpenSSL include directory is $OPENSSL_INCLUDE_DIR"
export OPENSSL_INCLUDE_DIR
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
Expand All @@ -74,8 +68,16 @@ jobs:
sccache: 'true'
manylinux: auto
before-script-linux: |
export OPENSSL_INCLUDE_DIR=$(dpkg-query -L libssl-dev | grep '/include/openssl$' | head -n 1)
export PKG_CONFIG_PATH="$OPENSSL_INCLUDE_DIR/pkgconfig:$PKG_CONFIG_PATH"
# Check if OpenSSL is installed and print its version
if command -v openssl >/dev/null 2>&1; then
echo "OpenSSL is installed"
openssl version
else
echo "OpenSSL is not installed"
fi
# Run commands to find SSL or perform other setup tasks
OPENSSL_DIR=$(openssl version -d | awk '{print $NF}' | sed 's/"//g')
export PKG_CONFIG_PATH="$OPENSSL_DIR/pkgconfig:$PKG_CONFIG_PATH"
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit b50db5b

Please sign in to comment.