Skip to content

Commit a7482d6

Browse files
authored
ci: Install gcc-aarch64-linux-gnu for gnd cross-compilation (#6449)
* ci: Install gcc-aarch64-linux-gnu for gnd cross-compilation The GitHub runner image no longer ships with the aarch64 cross-compiler pre-installed, causing the gnd binary build to fail for aarch64-unknown-linux-gnu. * ci: Install gcc-aarch64-linux-gnu for gnd cross-compilation
1 parent 44afc0f commit a7482d6

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/gnd-binary-build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ jobs:
4747
run: |
4848
sudo apt-get update
4949
sudo apt-get install -y protobuf-compiler musl-tools
50+
if [ "${{ matrix.target }}" = "aarch64-unknown-linux-gnu" ]; then
51+
sudo apt-get install -y gcc-aarch64-linux-gnu
52+
fi
5053
5154
- name: Install dependencies (macOS)
5255
if: startsWith(matrix.runner, 'macos')
@@ -61,6 +64,8 @@ jobs:
6164
- name: Build gnd binary (Unix/Mac)
6265
if: ${{ !startsWith(matrix.runner, 'windows') }}
6366
run: cargo build --bin gnd --release --target ${{ matrix.target }}
67+
env:
68+
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc
6469

6570
- name: Build gnd binary (Windows)
6671
if: startsWith(matrix.runner, 'windows')

0 commit comments

Comments
 (0)