Skip to content

Commit

Permalink
trying to fix aarch64-musl build
Browse files Browse the repository at this point in the history
  • Loading branch information
2bndy5 committed Dec 30, 2023
1 parent 665ff02 commit 3d30512
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/binary-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
run: |
sudo apt-get update
if [[ "${{matrix.target}}" == *musl ]]; then
sudo apt-get install musl-dev musl-tools linux-musl-dev
sudo apt-get install musl-dev musl-tools
else
sudo apt-get install gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu
fi
Expand Down Expand Up @@ -97,8 +97,13 @@ jobs:
with:
target: ${{ matrix.target }}

# problems with cross-compiling aarch64 linux with musl
- run: echo "RUSTFLAGS=-D warnings -C target-feature=+crt-static -C link-self-contained=yes" >> "${GITHUB_ENV}"
if: contains(matrix.target, '-linux-musl')

- name: Build
env:
# problems with cross-compiling aarch64 linux with gnu
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: /usr/bin/aarch64-linux-gnu-gcc
run: cargo build --manifest-path cpp-linter-cli/Cargo.toml --release --bin cpp-linter-cli --target ${{ matrix.target }} ${{ steps.is-openssl-vendored.outputs.enabled }}

Expand Down

0 comments on commit 3d30512

Please sign in to comment.