Kaynağa Gözat

CI: Reduce max cache to 7 GiB, remove Windows debug symbols

GitHub Actions runners only have 14 GiB available, so we need
to keep the cache constrained.
Rémi Verschelde 3 yıl önce
ebeveyn
işleme
9522032adf

+ 3 - 2
.github/actions/godot-build/action.yml

@@ -20,8 +20,9 @@ inputs:
     default: "${{ github.workspace }}/.scons-cache/"
   scons-cache-limit:
     description: The scons cache size limit.
-    # actions/cache has 10 GiB limit. Allow 10 GiB minus 256 MiB.
-    default: 9984
+    # actions/cache has 10 GiB limit, and GitHub runners have a 14 GiB disk.
+    # Limit to 7 GiB to avoid having the extracted cache fill the disk.
+    default: 7168
 runs:
   using: "composite"
   steps:

+ 2 - 1
.github/workflows/windows_builds.yml

@@ -27,6 +27,8 @@ jobs:
             target: release_debug
             tools: true
             tests: true
+            # Skip debug symbols, they're way too big with MSVC.
+            sconsflags: debug_symbols=no
             bin: "./bin/godot.windows.opt.tools.64.exe"
 
           - name: Template (target=release, tools=no)
@@ -57,7 +59,6 @@ jobs:
           target: ${{ matrix.target }}
           tools: ${{ matrix.tools }}
           tests: ${{ matrix.tests }}
-          scons-cache-limit: 8192
 
       # Execute unit tests for the editor
       - name: Unit tests