Skip to content

Commit fbf2664

Browse files
copyleftdevclaude
andcommitted
fix(ci): configure ARM64 cross-compilation linker
Set the correct linker for aarch64-unknown-linux-gnu target to fix the release build failure. The linker was trying to use x86-64 format for ARM64 objects. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 761f5be commit fbf2664

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,15 @@ jobs:
4949
sudo apt-get update
5050
sudo apt-get install -y gcc-aarch64-linux-gnu
5151
52+
- name: Configure ARM64 linker
53+
if: matrix.target == 'aarch64-unknown-linux-gnu'
54+
run: |
55+
mkdir -p .cargo
56+
cat >> .cargo/config.toml << 'EOF'
57+
[target.aarch64-unknown-linux-gnu]
58+
linker = "aarch64-linux-gnu-gcc"
59+
EOF
60+
5261
- name: Install musl tools
5362
if: matrix.target == 'x86_64-unknown-linux-musl'
5463
run: |

0 commit comments

Comments
 (0)