From de948f5a20ec3748129b4a81940d906b49063db5 Mon Sep 17 00:00:00 2001 From: bionickatana Date: Mon, 22 Jun 2026 11:31:45 -0600 Subject: [PATCH] Godot auto build --- .gitea/workflows/cache_test.yaml | 35 ++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .gitea/workflows/cache_test.yaml diff --git a/.gitea/workflows/cache_test.yaml b/.gitea/workflows/cache_test.yaml new file mode 100644 index 0000000..cafaa83 --- /dev/null +++ b/.gitea/workflows/cache_test.yaml @@ -0,0 +1,35 @@ +name: CI Cache Directory Test +on: [push] + +jobs: + test-cache: + runs-on: ubuntu-latest + steps: + - name: Check Cache and Simulate Asset Download + run: | + CACHE_DIR="/root/.godot-si-cache/test-version" + TARGET_FILE="./dummy_engine.txt" + + echo "🔍 Checking if target directory persistent cache exists..." + + if [ -f "${CACHE_DIR}/dummy_engine.txt" ]; then + echo "🚀 CACHE HIT! Found dummy asset in cache. Copying..." + cp "${CACHE_DIR}/dummy_engine.txt" "$TARGET_FILE" + echo "✅ Content inside cached asset: $(cat $TARGET_FILE)" + else + echo "📥 CACHE MISS! Creating a lightweight mock asset..." + + # Simulate generating a download asset + echo "Mock Godot Engine Data v4.7" > "$TARGET_FILE" + + echo "💾 Attempting to save asset to host persistent cache path..." + mkdir -p "${CACHE_DIR}" + cp "$TARGET_FILE" "${CACHE_DIR}/dummy_engine.txt" + echo "🎯 Asset saved to cache directory successfully." + fi + + - name: Verify Workspace Output + run: | + echo "Checking workspace execution folder:" + ls -la ./dummy_engine.txt + echo "File content: $(cat ./dummy_engine.txt)"