From bbc69f945e942dce3e6b61bc6c75b868fc332f9b Mon Sep 17 00:00:00 2001 From: Alexey <247128645+axkurcom@users.noreply.github.com> Date: Sun, 22 Mar 2026 11:04:09 +0300 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 28 +++++++++------------------- 1 file changed, 9 insertions(+), 19 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3cabb95..def299d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -130,14 +130,12 @@ jobs: pkg-config \ curl - # 💾 cache toolchain - uses: actions/cache@v4 if: matrix.target == 'aarch64-unknown-linux-musl' with: path: ~/.musl-aarch64 key: musl-toolchain-aarch64-v1 - # 🔥 надёжная установка - name: Install aarch64 musl toolchain if: matrix.target == 'aarch64-unknown-linux-musl' run: | @@ -145,27 +143,19 @@ jobs: TOOLCHAIN_DIR="$HOME/.musl-aarch64" ARCHIVE="aarch64-linux-musl-cross.tgz" + URL="https://github.com/telemt/telemt/releases/download/toolchains/$ARCHIVE" if [ -x "$TOOLCHAIN_DIR/bin/aarch64-linux-musl-gcc" ]; then - echo "✅ musl toolchain already installed" + echo "✅ MUSL toolchain already installed" else - echo "⬇️ downloading musl toolchain..." + echo "⬇️ Downloading musl toolchain from Telemt GitHub Releases..." - download() { - url="$1" - echo "→ trying $url" - curl -fL \ - --retry 5 \ - --retry-delay 3 \ - --connect-timeout 10 \ - --max-time 120 \ - -o "$ARCHIVE" "$url" && return 0 - return 1 - } - - download "https://musl.cc/$ARCHIVE" || \ - download "https://more.musl.cc/$ARCHIVE" || \ - { echo "❌ failed to download musl toolchain"; exit 1; } + curl -fL \ + --retry 5 \ + --retry-delay 3 \ + --connect-timeout 10 \ + --max-time 120 \ + -o "$ARCHIVE" "$URL" mkdir -p "$TOOLCHAIN_DIR" tar -xzf "$ARCHIVE" --strip-components=1 -C "$TOOLCHAIN_DIR"