diff --git a/.gitea/workflows/publish-image.yaml b/.gitea/workflows/publish-image.yaml index ac2b800..a1fffdf 100644 --- a/.gitea/workflows/publish-image.yaml +++ b/.gitea/workflows/publish-image.yaml @@ -37,18 +37,7 @@ jobs: - name: Make scripts executable run: chmod +x *.sh - - # --- NEW STEP: Download on Host --- - - name: Pre-download LLVM Toolchain - run: | - 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 "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 env: diff --git a/build-windows.sh b/build-windows.sh index c74b2ca..02f3774 100644 --- a/build-windows.sh +++ b/build-windows.sh @@ -26,6 +26,20 @@ buildah pull --tls-verify=false --storage-driver=vfs "$BASE_TAG" # This satisfies: FROM godot-fedora:custom buildah tag --storage-driver=vfs "$BASE_TAG" "godot-fedora:custom" +echo "---------------------------------------" +echo "Preparing Context..." +echo "---------------------------------------" + +# Check if the file exists in the 'files/' folder (provided by actions/checkout) +if [ -f "files/$TARBALL" ]; then + echo "✅ Found local tarball in repository. Copying to build context..." + cp "files/$TARBALL" . +else + echo "❌ CRITICAL ERROR: $TARBALL not found in 'files/' directory!" + echo "Did you forget to git add/push the file?" + exit 1 +fi + echo "---------------------------------------" echo "Building Windows Image..." echo "---------------------------------------" diff --git a/files/llvm-mingw-20250528-ucrt-ubuntu-22.04-x86_64.tar.xz b/files/llvm-mingw-20250528-ucrt-ubuntu-22.04-x86_64.tar.xz new file mode 100644 index 0000000..3737ff9 Binary files /dev/null and b/files/llvm-mingw-20250528-ucrt-ubuntu-22.04-x86_64.tar.xz differ