Skip to content

Commit

Permalink
try to fix openssl again (x8)
Browse files Browse the repository at this point in the history
  • Loading branch information
azmyrajab committed Mar 22, 2024
1 parent 4af0abd commit f5f29d4
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/publish_to_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,13 @@ jobs:

- name: Find and set OpenSSL directory
run: |
OPENSSL_DIR=$(openssl version -d | awk '{print $NF}' | sed 's/"//g')
OPENSSL_INCLUDE_DIR=$(dpkg-query -L libssl-dev | grep '/include$' | head -n 1)
echo "OpenSSL is installed in $OPENSSL_DIR"
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
export PKG_CONFIG_PATH="$OPENSSL_DIR/pkgconfig:$PKG_CONFIG_PATH"
- name: Build wheels
run: |
export OPENSSL_DIR=$(openssl version -d | awk '{print $NF}' | sed 's/"//g')
export PKG_CONFIG_PATH="$OPENSSL_DIR/pkgconfig:$PKG_CONFIG_PATH"
cargo tree --depth 20
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"
cargo build --release
- name: Build wheels
uses: PyO3/maturin-action@v1
Expand Down

0 comments on commit f5f29d4

Please sign in to comment.