Skip to content

Commit

Permalink
ci: fix linker for aarch64 linux
Browse files Browse the repository at this point in the history
  • Loading branch information
d-roak committed Sep 22, 2023
1 parent 46d6192 commit d6d2a25
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/binaries-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,19 @@ jobs:
run: |
sudo apt update
sudo apt install -y g++-aarch64-linux-gnu libc6-dev-arm64-cross
export CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc
export CC_aarch64_unknown_linux_gnu=aarch64-linux-gnu-gcc
export CXX_aarch64_unknown_linux_gnu=aarch64-linux-gnu-g+
- name: Build binaries
if: matrix.build != 'aarch64-unknown-linux-gnu'
run: cargo build --release --target ${{ matrix.build }}

- name: Build (aarch64-unknown-linux-gnu)
if: matrix.build == 'aarch64-unknown-linux-gnu'
run: |
export CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=/usr/bin/aarch64-linux-gnu-gcc
export CC_aarch64_unknown_linux_gnu=/usr/bin/aarch64-linux-gnu-gcc
export CXX_aarch64_unknown_linux_gnu=/usr/bin/aarch64-linux-gnu-g++
cargo build --release --target ${{ matrix.build }}
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
Expand Down

0 comments on commit d6d2a25

Please sign in to comment.