@@ -69,31 +69,24 @@ jobs:
6969 sudo apt-get install -y musl-tools
7070 if [ "${{ matrix.target }}" = "aarch64-unknown-linux-musl" ]; then
7171 sudo apt-get install -y gcc-aarch64-linux-gnu musl-dev
72- # Install aarch64 musl cross-compiler with retry and fallback mirrors
73- MUSL_ARCHIVE="aarch64-linux-musl-cross.tgz"
74- MUSL_URLS=(
75- "https://more.musl.cc/x86_64-linux-musl/${MUSL_ARCHIVE}"
76- "https://musl.cc/${MUSL_ARCHIVE}"
77- )
78- DOWNLOADED=false
79- for url in "${MUSL_URLS[@]}"; do
80- echo "Trying: ${url}"
81- for attempt in 1 2 3; do
82- echo " Attempt ${attempt}..."
83- if curl -fsSL --connect-timeout 30 --retry 2 --retry-delay 5 -o "/tmp/${MUSL_ARCHIVE}" "${url}"; then
84- DOWNLOADED=true
85- break 2
86- fi
87- sleep 5
88- done
72+ # Install aarch64 musl cross-compiler
73+ MUSL_ARCHIVE="aarch64-unknown-linux-musl.tar.xz"
74+ MUSL_URL="https://github.com/cross-tools/musl-cross/releases/download/20250929/${MUSL_ARCHIVE}"
75+ echo "Downloading: ${MUSL_URL}"
76+ for attempt in 1 2 3; do
77+ echo " Attempt ${attempt}..."
78+ if curl -fsSL --connect-timeout 30 --retry 2 --retry-delay 5 -o "/tmp/${MUSL_ARCHIVE}" "${MUSL_URL}"; then
79+ break
80+ fi
81+ if [ "${attempt}" -eq 3 ]; then
82+ echo "::error::Failed to download musl cross-compiler"
83+ exit 1
84+ fi
85+ sleep 5
8986 done
90- if [ "${DOWNLOADED}" = false ]; then
91- echo "::error::Failed to download musl cross-compiler from all mirrors"
92- exit 1
93- fi
94- sudo tar xzf "/tmp/${MUSL_ARCHIVE}" -C /opt
87+ sudo tar xJf "/tmp/${MUSL_ARCHIVE}" -C /opt
9588 rm -f "/tmp/${MUSL_ARCHIVE}"
96- echo "/opt/aarch64-linux-musl-cross /bin" >> $GITHUB_PATH
89+ echo "/opt/aarch64-unknown- linux-musl/bin" >> $GITHUB_PATH
9790 fi
9891
9992 - name : Configure linker for musl ARM64
0 commit comments