Move llvm download to host machine
This commit is contained in:
@ -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:
|
||||
|
||||
@ -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 "---------------------------------------"
|
||||
|
||||
Reference in New Issue
Block a user