Skip to content

Commit 77fa788

Browse files
authored
Custom linker config for linux-arm64 (#139)
1 parent c4aabc5 commit 77fa788

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@ jobs:
5151
with:
5252
ref: ${{ inputs.version }}
5353
path: checkout-tag
54+
- name: Add target config for arm64 on Linux
55+
if: ${{ matrix.target.name == 'linux-arm64' }}
56+
run: |
57+
sudo apt update && sudo apt install -y gcc-aarch64-linux-gnu
58+
mkdir -p checkout-tag/.cargo
59+
echo '\n\n[target.aarch64-unknown-linux-gnu]\nlinker = "aarch64-linux-gnu-gcc"' >> checkout-tag/.cargo/config
5460
- name: Build binary
5561
uses: houseabsolute/[email protected]
5662
with:

0 commit comments

Comments
 (0)