Skip to content

Commit f466261

Browse files
committed
headers for compiling under jammy
1 parent aa36568 commit f466261

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.github/workflows/maturin.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,19 @@ jobs:
3535
set -ex
3636
cat /etc/*release*
3737
if [ "${{ matrix.platform.target }}" = "x86_64" ]; 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 }}" = "aarch64" ]; then
3841
dnf install -y epel-release && dnf update -y
3942
dnf install -y gcc gcc-c++ make perl curl openssl-devel pkgconfig clang xz-devel
40-
export OPENSSL_LIB_DIR=$(pkg-config --variable=libdir openssl)
41-
export OPENSSL_INCLUDE_DIR=$(pkg-config --variable=includedir openssl)
42-
if [ -z "$OPENSSL_LIB_DIR" ] || [ -z "$OPENSSL_INCLUDE_DIR" ]; then
43-
echo "OpenSSL development files are not installed or pkg-config is not configured correctly."
44-
exit 1
45-
fi
46-
export OPENSSL_DIR="$OPENSSL_LIB_DIR/ssl"
47-
export OPENSSL_NO_VENDOR=1
43+
fi
44+
export OPENSSL_LIB_DIR=$(pkg-config --variable=libdir openssl)
45+
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 [ -z "$OPENSSL_LIB_DIR" ] || [ -z "$OPENSSL_INCLUDE_DIR" ]; then
49+
echo "OpenSSL development files are not installed or pkg-config is not configured correctly."
50+
exit 1
4851
fi
4952
- name: Upload wheels
5053
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)