From 2ed852affc07d2cdad35089c0865e7f763189662 Mon Sep 17 00:00:00 2001 From: Olof Pettersson Date: Tue, 2 Dec 2025 11:31:39 +0100 Subject: [PATCH] Try download bin from self repo --- .gitea/workflows/publish-image.yaml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/publish-image.yaml b/.gitea/workflows/publish-image.yaml index 34ddf0a..ac2b800 100644 --- a/.gitea/workflows/publish-image.yaml +++ b/.gitea/workflows/publish-image.yaml @@ -41,16 +41,13 @@ jobs: # --- NEW STEP: Download on Host --- - name: Pre-download LLVM Toolchain run: | - # Variable MUST match what is in build-windows.sh - LLVM_VER="20250528" - TARBALL="llvm-mingw-${LLVM_VER}-ucrt-ubuntu-22.04-x86_64.tar.xz" - URL="https://github.com/mstorsjo/llvm-mingw/releases/download/${LLVM_VER}/${TARBALL}" + TARBALL="llvm-mingw-20250528-ucrt-ubuntu-22.04-x86_64.tar.xz" + # Internal Gitea URL + URL="https://gitea.212.63.210.91.nip.io/api/packages/${{ gitea.repository_owner }}/generic/llvm-mingw/20250528/llvm-mingw.tar.xz" - echo "Downloading $TARBALL on runner host..." - wget "$URL" - - echo "Verifying file size..." - ls -lh "$TARBALL" + echo "Fetching from Gitea Registry..." + # Use the Gitea Token for auth + wget --header="Authorization: token ${{ secrets.USER_PACKAGE_PASSWORD }}" -O "$TARBALL" "$URL" - name: Build Windows Target uses: docker://quay.io/buildah/stable