Move llvm download to host machine
Some checks failed
Publish Builder Images / build-base (push) Successful in 31s
Publish Builder Images / build-windows (push) Has been cancelled

This commit is contained in:
2025-12-02 11:16:16 +01:00
parent 19fd65f9cd
commit 7e6471fcc0
2 changed files with 14 additions and 24 deletions

View File

@ -38,6 +38,20 @@ jobs:
- name: Make scripts executable
run: chmod +x *.sh
# --- 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}"
echo "Downloading $TARBALL on runner host..."
wget "$URL"
echo "Verifying file size..."
ls -lh "$TARBALL"
- name: Build Windows Target
uses: docker://quay.io/buildah/stable
env:

View File

@ -26,30 +26,6 @@ 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"
# --- Configuration ---
# Match these exactly to what is in your Dockerfile
LLVM_VER="20250528"
LLVM_NAME="llvm-mingw-${LLVM_VER}-ucrt-ubuntu-22.04-x86_64"
TARBALL="${LLVM_NAME}.tar.xz"
DOWNLOAD_URL="https://github.com/mstorsjo/llvm-mingw/releases/download/${LLVM_VER}/${TARBALL}"
# Check if wget is missing and install it
if ! command -v wget &> /dev/null; then
echo "wget not found. Installing..."
dnf install -y wget
fi
echo "---------------------------------------"
echo "Pre-downloading LLVM Toolchain..."
echo "---------------------------------------"
# We check if it exists so we don't re-download if the runner cached it
if [ ! -f "$TARBALL" ]; then
echo "Downloading $TARBALL..."
wget "$DOWNLOAD_URL"
else
echo "File already exists. Using cached version."
fi
echo "---------------------------------------"
echo "Building Windows Image..."
echo "---------------------------------------"