From 6bfb04335a960698be9adb0b54bce3030e776281 Mon Sep 17 00:00:00 2001 From: Zaytha Date: Sun, 6 Jul 2025 07:52:12 -0700 Subject: [PATCH] Proper caching idk im dying here --- .gitea/workflows/godot-ci.yml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/godot-ci.yml b/.gitea/workflows/godot-ci.yml index c73413f..298a695 100644 --- a/.gitea/workflows/godot-ci.yml +++ b/.gitea/workflows/godot-ci.yml @@ -116,8 +116,8 @@ jobs: name: linux path: build/bin/linux - # Restore Steam cache - - name: Restore Steam Cache + # Restore Cache + - name: Restore Cache uses: https://gitea.com/actions/cache@v3 with: path: | @@ -128,12 +128,17 @@ jobs: steam-cache-${{ runner.os }}- steam-cache- - # Read Cache - name: Read Cache run: | mkdir -p ./steam_cache + mkdir -p /home/steam/Steam/config cp ./steam_cache/config.vdf /home/steam/Steam/config/ 2>/dev/null || echo "No cached config file" cp ./steam_cache/ssfn* /home/steam/Steam/ 2>/dev/null || echo "No cached sentry file" + + echo "Files in cache:" + ls -la ./steam_cache/ 2>/dev/null || echo "No cache directory" + echo "Files in Steam directory:" + ls -la /home/steam/Steam/ 2>/dev/null || echo "No Steam directory" - name: Update VDF run: | @@ -146,9 +151,11 @@ jobs: cd $PROJECT_PATH /home/steam/steamcmd/steamcmd.sh +set_steam_guard_code "${{ secrets.STEAM_GUARD_CODE }}" +login "${{ vars.STEAM_BUILD_USERNAME }}" "${{ secrets.STEAM_BUILD_PASSWORD }}" +run_app_build "$PWD/build/build_dependencies/steam/app_build_2739610.vdf" +quit - # Write cache - - name: Cache Config and sentry + - name: Write Cache run: | mkdir -p ./steam_cache cp /home/steam/Steam/config/config.vdf ./steam_cache/ 2>/dev/null || echo "No config file to cache" - cp /home/steam/Steam/ssfn* ./steam_cache/ 2>/dev/null || echo "No sentry files to cache" \ No newline at end of file + cp /home/steam/Steam/ssfn* ./steam_cache/ 2>/dev/null || echo "No sentry files to cache" + + echo "Files cached:" + ls -la ./steam_cache/ 2>/dev/null || echo "No cache directory" \ No newline at end of file