Skip to content

Commit db19807

Browse files
nbafrankclaude
andcommitted
Fix aarch64-musl release build: replace musl.cc with cross
musl.cc download times out in GitHub Actions causing release build failures. Switch to cross-rs/cross which handles the MUSL ARM64 toolchain via Docker containers. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 46c8595 commit db19807

1 file changed

Lines changed: 4 additions & 11 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
os: ubuntu-latest
3131
- target: aarch64-unknown-linux-musl
3232
os: ubuntu-latest
33+
use_cross: true
3334
- target: x86_64-pc-windows-msvc
3435
os: windows-latest
3536

@@ -52,17 +53,9 @@ jobs:
5253
if: matrix.target == 'x86_64-unknown-linux-musl'
5354
run: sudo apt-get update && sudo apt-get install -y musl-tools
5455

55-
- name: Install cross-compilation tools (Linux MUSL ARM64)
56+
- name: Install cross (Linux MUSL ARM64)
5657
if: matrix.target == 'aarch64-unknown-linux-musl'
57-
run: |
58-
sudo apt-get update
59-
sudo apt-get install -y musl-tools gcc-aarch64-linux-gnu musl-dev
60-
sudo apt-get install -y gcc-aarch64-linux-gnu
61-
# Install aarch64 musl cross-compiler
62-
wget -q https://musl.cc/aarch64-linux-musl-cross.tgz
63-
tar xzf aarch64-linux-musl-cross.tgz -C /opt
64-
echo "/opt/aarch64-linux-musl-cross/bin" >> $GITHUB_PATH
65-
echo "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER=aarch64-linux-musl-gcc" >> $GITHUB_ENV
58+
run: cargo install cross --git https://github.com/cross-rs/cross
6659

6760
- name: Cache cargo registry
6861
uses: actions/cache@v4
@@ -75,7 +68,7 @@ jobs:
7568
restore-keys: release-${{ matrix.target }}-
7669

7770
- name: Build release binary
78-
run: cargo build --release --target ${{ matrix.target }} -p uvr
71+
run: ${{ matrix.use_cross && 'cross' || 'cargo' }} build --release --target ${{ matrix.target }} -p uvr
7972

8073
- name: Package (Unix)
8174
if: runner.os != 'Windows'

0 commit comments

Comments
 (0)