File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 4343 - uses : actions/setup-python@v5
4444 with :
4545 python-version : 3.x
46+
47+ # Conditionally install AArch64 cross-compiler and libraries
48+ - name : Install AArch64 Cross-Compiler and Libraries
49+ if : matrix.platform.target == 'aarch64'
50+ run : |
51+ sudo dpkg --add-architecture arm64
52+ sudo apt-get update
53+ sudo apt-get install -y gcc-aarch64-linux-gnu libc6-dev-arm64-cross
54+
55+ # Add the AArch64 Rust target
56+ - name : Add AArch64 Rust Target
57+ if : matrix.platform.target == 'aarch64'
58+ run : rustup target add aarch64-unknown-linux-gnu
59+
60+ # Set environment variables for cross-compilation
61+ - name : Set Environment Variables for AArch64
62+ if : matrix.platform.target == 'aarch64'
63+ run : |
64+ echo "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc" >> $GITHUB_ENV
65+ echo "CC_aarch64_unknown_linux_gnu=aarch64-linux-gnu-gcc" >> $GITHUB_ENV
66+ echo "CXX_aarch64_unknown_linux_gnu=aarch64-linux-gnu-g++" >> $GITHUB_ENV
67+
4668 - name : Build wheels
4769 uses : PyO3/maturin-action@v1
4870 with :
You can’t perform that action at this time.
0 commit comments