Skip to content

Commit 87d6254

Browse files
committed
or not
1 parent fea1bcd commit 87d6254

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.github/workflows/maturin.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,20 @@ jobs:
3838
# maturin-action's manylinux switches to AlmaLinux 8
3939
dnf install -y epel-release && dnf update -y
4040
dnf install -y gcc gcc-c++ make perl curl openssl-devel pkgconfig clang xz-devel
41+
export OPENSSL_INCLUDE_DIR=$(pkg-config --variable=includedir openssl)
42+
export OPENSSL_LIB_DIR=$(pkg-config --variable=libdir openssl)
43+
export OPENSSL_DIR="$OPENSSL_LIB_DIR/ssl"
4144
elif [ "${{ matrix.platform.target }}" = "aarch64" ]; then
45+
# cross-compiling on Ubuntu 22.04
4246
apt-get update
43-
apt-get install -y build-essential perl curl libssl-dev pkg-config clang liblzma-dev
47+
apt-get install -y build-essential perl curl pkg-config clang liblzma-dev
48+
apt-get install -y libssl-dev:aarch64 crossbuild-essential-arm64
49+
export OPENSSL_LIB_DIR=/usr/lib/aarch64-linux-gnu
50+
export OPENSSL_INCLUDE_DIR=/usr/include/aarch64-linux-gnu
51+
export OPENSSL_DIR=/usr/lib/aarch64-linux-gnu
52+
export OPENSSL_NO_VENDOR=1
4453
fi
4554
export OPENSSL_NO_VENDOR=1
46-
export OPENSSL_LIB_DIR=$(pkg-config --variable=libdir openssl)
47-
export OPENSSL_INCLUDE_DIR=$(pkg-config --variable=includedir openssl)
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
5355
if [ -z "$OPENSSL_LIB_DIR" ] || [ -z "$OPENSSL_INCLUDE_DIR" ]; then
5456
echo "OpenSSL development files are not installed or pkg-config is not configured correctly."
5557
exit 1

0 commit comments

Comments
 (0)