Files
godot_number_factory/.gitea/workflows/cache_test.yaml
T
bionickatana de948f5a20
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 6s
CI Cache Directory Test / test-cache (push) Successful in 2s
Godot auto build
2026-06-22 11:31:45 -06:00

36 lines
1.3 KiB
YAML

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)"