File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -48,14 +48,24 @@ jobs:
4848 - name : Install AArch64 Cross-Compiler and Libraries
4949 if : matrix.platform.target == 'aarch64'
5050 run : |
51+ sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
5152 sudo apt-get update
52- sudo apt-get install -y gcc-aarch64-linux-gnu libc6-dev-arm64-cross
53+ sudo apt-get install -y gcc-13-aarch64-linux-gnu g++-13- aarch64-linux-gnu libc6-dev-arm64-cross
5354
5455 # Add the AArch64 Rust target
5556 - name : Add AArch64 Rust Target
5657 if : matrix.platform.target == 'aarch64'
5758 run : rustup target add aarch64-unknown-linux-gnu
58-
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-13" >> $GITHUB_ENV
65+ echo "CC_aarch64_unknown_linux_gnu=aarch64-linux-gnu-gcc-13" >> $GITHUB_ENV
66+ echo "CXX_aarch64_unknown_linux_gnu=aarch64-linux-gnu-g++-13" >> $GITHUB_ENV
67+
68+
5969 - name : Build wheels
6070 uses : PyO3/maturin-action@v1
6171 with :
You can’t perform that action at this time.
0 commit comments