CI: Trim cache before saving

This commit is contained in:
Thaddeus Crews
2025-03-13 12:29:42 -05:00
parent 701505eb4f
commit de33bd2b7c
11 changed files with 71 additions and 63 deletions

View File

@@ -20,21 +20,18 @@ jobs:
target: editor
tests: false
sconsflags: arch=arm64 production=yes swappy=yes
cache-limit: 1
- name: Template arm32 (target=template_release, arch=arm32)
cache-name: android-template-arm32
target: template_release
tests: false
sconsflags: arch=arm32 swappy=yes
cache-limit: 1
- name: Template arm64 (target=template_release, arch=arm64)
cache-name: android-template-arm64
target: template_release
tests: false
sconsflags: arch=arm64 swappy=yes
cache-limit: 1
steps:
- name: Checkout
@@ -75,7 +72,6 @@ jobs:
platform: android
target: ${{ matrix.target }}
tests: ${{ matrix.tests }}
scons-cache-limit: ${{ matrix.cache-limit }}
- name: Save Godot build cache
uses: ./.github/actions/godot-cache-save

View File

@@ -32,7 +32,6 @@ jobs:
platform: ios
target: template_release
tests: false
scons-cache-limit: 1
- name: Save Godot build cache
uses: ./.github/actions/godot-cache-save

View File

@@ -34,7 +34,6 @@ jobs:
artifact: true
# Validate godot-cpp compatibility on one arbitrary editor build.
godot-cpp: true
cache-limit: 2
- name: Editor with doubles and GCC sanitizers (target=editor, tests=yes, dev_build=yes, scu_build=yes, precision=double, use_asan=yes, use_ubsan=yes, linker=gold)
cache-name: linux-editor-double-sanitizers
@@ -47,7 +46,6 @@ jobs:
proj-test: true
# Skip 2GiB artifact speeding up action.
artifact: false
cache-limit: 7
- name: Editor with clang sanitizers (target=editor, tests=yes, dev_build=yes, use_asan=yes, use_ubsan=yes, use_llvm=yes, linker=lld)
cache-name: linux-editor-llvm-sanitizers
@@ -60,7 +58,6 @@ jobs:
artifact: false
# Test our oldest supported SCons/Python versions on one arbitrary editor build.
legacy-scons: true
cache-limit: 7
- name: Editor with ThreadSanitizer (target=editor, tests=yes, dev_build=yes, use_tsan=yes, use_llvm=yes, linker=lld)
cache-name: linux-editor-thread-sanitizer
@@ -71,7 +68,6 @@ jobs:
build-mono: false
# Skip 2GiB artifact speeding up action.
artifact: false
cache-limit: 5
- name: Template w/ Mono, release (target=template_release, tests=yes)
cache-name: linux-template-mono
@@ -81,7 +77,6 @@ jobs:
build-mono: false
tests: true
artifact: true
cache-limit: 1
- name: Template w/ Mono, debug (target=template_debug, tests=yes)
cache-name: linux-template-mono-debug
@@ -91,7 +86,6 @@ jobs:
build-mono: false
tests: true
artifact: true
cache-limit: 1
- name: Minimal template (target=template_release, tests=yes, everything disabled)
cache-name: linux-template-minimal
@@ -100,7 +94,6 @@ jobs:
bin: ./bin/godot.linuxbsd.template_release.x86_64
tests: true
artifact: true
cache-limit: 1
steps:
- name: Checkout
@@ -165,7 +158,6 @@ jobs:
platform: linuxbsd
target: ${{ matrix.target }}
tests: ${{ matrix.tests }}
scons-cache-limit: ${{ matrix.cache-limit }}
- name: Compilation (godot-cpp)
uses: ./.github/actions/godot-cpp-build

View File

@@ -20,7 +20,6 @@ jobs:
target: editor
tests: true
bin: ./bin/godot.macos.editor.universal
cache-limit: 1
- name: Template (target=template_release, tests=yes)
cache-name: macos-template
@@ -28,7 +27,6 @@ jobs:
tests: true
sconsflags: debug_symbols=no
bin: ./bin/godot.macos.template_release.universal
cache-limit: 1
steps:
- name: Checkout
@@ -56,7 +54,6 @@ jobs:
platform: macos
target: ${{ matrix.target }}
tests: ${{ matrix.tests }}
scons-cache-limit: 0 # Only cap on second run to avoid purging unnecessarily
- name: Compilation (arm64)
uses: ./.github/actions/godot-build
@@ -65,7 +62,6 @@ jobs:
platform: macos
target: ${{ matrix.target }}
tests: ${{ matrix.tests }}
scons-cache-limit: ${{ matrix.cache-limit }}
- name: Save Godot build cache
uses: ./.github/actions/godot-cache-save

View File

@@ -62,7 +62,6 @@ jobs:
platform: web
target: ${{ matrix.target }}
tests: ${{ matrix.tests }}
scons-cache-limit: 0.5
- name: Save Godot build cache
uses: ./.github/actions/godot-cache-save

View File

@@ -26,7 +26,6 @@ jobs:
sconsflags: debug_symbols=no vsproj=yes vsproj_gen_only=no windows_subsystem=console
bin: ./bin/godot.windows.editor.x86_64.exe
compiler: msvc
cache-limit: 2
- name: Editor w/ clang-cl (target=editor, tests=yes, use_llvm=yes)
cache-name: windows-editor-clang
@@ -35,7 +34,6 @@ jobs:
sconsflags: debug_symbols=no windows_subsystem=console use_llvm=yes
bin: ./bin/godot.windows.editor.x86_64.llvm.exe
compiler: clang
cache-limit: 1
- name: Template (target=template_release, tests=yes)
cache-name: windows-template
@@ -44,7 +42,6 @@ jobs:
sconsflags: debug_symbols=no
bin: ./bin/godot.windows.template_release.x86_64.console.exe
compiler: msvc
cache-limit: 2
- name: Template w/ GCC (target=template_release, tests=yes, use_mingw=yes)
cache-name: windows-template-gcc
@@ -54,7 +51,6 @@ jobs:
sconsflags: debug_symbols=no use_mingw=yes
bin: ./bin/godot.windows.template_release.x86_64.console.exe
compiler: gcc
cache-limit: 1
steps:
- name: Checkout
@@ -92,7 +88,6 @@ jobs:
platform: windows
target: ${{ matrix.target }}
tests: ${{ matrix.tests }}
scons-cache-limit: ${{ matrix.cache-limit }}
- name: Save Godot build cache
uses: ./.github/actions/godot-cache-save