Преглед на файлове

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 години
родител
ревизия
9522032adf
променени са 2 файла, в които са добавени 5 реда и са изтрити 3 реда
  1. 3 2
      .github/actions/godot-build/action.yml
  2. 2 1
      .github/workflows/windows_builds.yml

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

@@ -20,8 +20,9 @@ inputs:
     default: "${{ github.workspace }}/.scons-cache/"
     default: "${{ github.workspace }}/.scons-cache/"
   scons-cache-limit:
   scons-cache-limit:
     description: The scons cache size 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:
 runs:
   using: "composite"
   using: "composite"
   steps:
   steps:

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

@@ -27,6 +27,8 @@ jobs:
             target: release_debug
             target: release_debug
             tools: true
             tools: true
             tests: 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"
             bin: "./bin/godot.windows.opt.tools.64.exe"
 
 
           - name: Template (target=release, tools=no)
           - name: Template (target=release, tools=no)
@@ -57,7 +59,6 @@ jobs:
           target: ${{ matrix.target }}
           target: ${{ matrix.target }}
           tools: ${{ matrix.tools }}
           tools: ${{ matrix.tools }}
           tests: ${{ matrix.tests }}
           tests: ${{ matrix.tests }}
-          scons-cache-limit: 8192
 
 
       # Execute unit tests for the editor
       # Execute unit tests for the editor
       - name: Unit tests
       - name: Unit tests