Skip to content

Commit 9078fe1

Browse files
Update openssl version when targeting armv7
1 parent 878d054 commit 9078fe1

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/CI.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,23 @@ jobs:
4040
- uses: actions/setup-python@v5
4141
with:
4242
python-version: 3.x
43+
# 🛠 Install ARM toolchain and OpenSSL for armv7
44+
- name: Setup cross-compilation for armv7
45+
if: matrix.platform.target == 'armv7'
46+
run: |
47+
sudo apt-get update
48+
sudo apt-get install -y gcc-arm-linux-gnueabihf libssl-dev:armhf pkg-config
49+
50+
echo "OPENSSL_DIR=/usr/arm-linux-gnueabihf" >> $GITHUB_ENV
51+
echo "PKG_CONFIG_PATH=/usr/arm-linux-gnueabihf/pkgconfig" >> $GITHUB_ENV
52+
echo "CC_armv7_unknown_linux_gnueabihf=arm-linux-gnueabihf-gcc" >> $GITHUB_ENV
53+
echo "PKG_CONFIG_ALLOW_CROSS=1" >> $GITHUB_ENV
54+
55+
# 🛠 Enable vendored OpenSSL for all platforms as fallback
56+
- name: Set OPENSSL vendored fallback
57+
run: |
58+
echo "OPENSSL_NO_VENDOR=0" >> $GITHUB_ENV
59+
echo "OPENSSL_STATIC=1" >> $GITHUB_ENV
4360
- name: Build wheels
4461
uses: PyO3/maturin-action@v1
4562

0 commit comments

Comments
 (0)