Skip to content

Commit fea1bcd

Browse files
committed
this should do it
1 parent f320576 commit fea1bcd

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/maturin.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,21 +34,27 @@ jobs:
3434
before-script-linux: |
3535
set -ex
3636
cat /etc/*release*
37-
if [ "${{ matrix.platform.target }}" = "aarch64" ]; then
38-
apt-get update
39-
apt-get install -y build-essential perl curl libssl-dev pkg-config clang liblzma-dev
40-
elif [ "${{ matrix.platform.target }}" = "x86_64" ]; then
37+
if [ "${{ matrix.platform.target }}" = "x86_64" ]; then
38+
# maturin-action's manylinux switches to AlmaLinux 8
4139
dnf install -y epel-release && dnf update -y
4240
dnf install -y gcc gcc-c++ make perl curl openssl-devel pkgconfig clang xz-devel
41+
elif [ "${{ matrix.platform.target }}" = "aarch64" ]; then
42+
apt-get update
43+
apt-get install -y build-essential perl curl libssl-dev pkg-config clang liblzma-dev
4344
fi
45+
export OPENSSL_NO_VENDOR=1
4446
export OPENSSL_LIB_DIR=$(pkg-config --variable=libdir openssl)
4547
export OPENSSL_INCLUDE_DIR=$(pkg-config --variable=includedir openssl)
46-
export OPENSSL_DIR="$OPENSSL_LIB_DIR/ssl"
47-
export OPENSSL_NO_VENDOR=1
48+
if [ "${{ matrix.platform.target }}" = "x86_64" ]; then
49+
export OPENSSL_DIR="$OPENSSL_LIB_DIR/ssl"
50+
elif [ "${{ matrix.platform.target }}" = "aarch64" ]; then
51+
export OPENSSL_DIR="$OPENSSL_LIB_DIR"
52+
fi
4853
if [ -z "$OPENSSL_LIB_DIR" ] || [ -z "$OPENSSL_INCLUDE_DIR" ]; then
4954
echo "OpenSSL development files are not installed or pkg-config is not configured correctly."
5055
exit 1
5156
fi
57+
env | grep SSL # for debugging when rust crate fails to find headers
5258
- name: Upload wheels
5359
uses: actions/upload-artifact@v4
5460
with:

0 commit comments

Comments
 (0)