File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments