Skip to content

Commit 3796800

Browse files
ci: fix aarch64-unknown-linux-musl (#150)
1 parent 8d31f16 commit 3796800

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,10 @@ jobs:
143143
if: ${{ matrix.target == 'aarch64-unknown-linux-musl' }}
144144
run: |
145145
sudo apt update -y
146-
sudo apt install -y gcc-aarch64-linux-gnu
147-
echo CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER=rust-lld >> $GITHUB_ENV
148-
echo CC=aarch64-linux-gnu-gcc >> $GITHUB_ENV
146+
sudo apt install -y clang llvm musl-tools
147+
echo "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_RUSTFLAGS=-Clink-self-contained=yes -Clinker=rust-lld" >> $GITHUB_ENV
148+
echo CC_aarch64_unknown_linux_musl=clang >> $GITHUB_ENV
149+
echo AR_aarch64_unknown_linux_musl=llvm-ar >> $GITHUB_ENV
149150
150151
- name: Build
151152
run: cargo build --bins --locked --release --target ${{ matrix.target }}

0 commit comments

Comments
 (0)