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