Put tarball in repo
This commit is contained in:
@ -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:
|
||||
|
||||
@ -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 "---------------------------------------"
|
||||
|
||||
BIN
files/llvm-mingw-20250528-ucrt-ubuntu-22.04-x86_64.tar.xz
Normal file
BIN
files/llvm-mingw-20250528-ucrt-ubuntu-22.04-x86_64.tar.xz
Normal file
Binary file not shown.
Reference in New Issue
Block a user