Skip to content

Commit 82d51a3

Browse files
committed
Merge pull request #99709 from AThousandShips/cache_size_improve
[Buildsystem] Tweak cache sizes for CI
2 parents 819db4d + 344d678 commit 82d51a3

File tree

6 files changed

+22
-0
lines changed

6 files changed

+22
-0
lines changed

.github/workflows/android_builds.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,21 @@ jobs:
2525
target: editor
2626
tests: false
2727
sconsflags: arch=arm64 production=yes swappy=yes
28+
cache-limit: 1
2829

2930
- name: Template arm32 (target=template_release, arch=arm32)
3031
cache-name: android-template-arm32
3132
target: template_release
3233
tests: false
3334
sconsflags: arch=arm32 swappy=yes
35+
cache-limit: 1
3436

3537
- name: Template arm64 (target=template_release, arch=arm64)
3638
cache-name: android-template-arm64
3739
target: template_release
3840
tests: false
3941
sconsflags: arch=arm64 swappy=yes
42+
cache-limit: 1
4043

4144
steps:
4245
- name: Checkout
@@ -77,6 +80,7 @@ jobs:
7780
platform: android
7881
target: ${{ matrix.target }}
7982
tests: ${{ matrix.tests }}
83+
scons-cache-limit: ${{ matrix.cache-limit }}
8084

8185
- name: Save Godot build cache
8286
uses: ./.github/actions/godot-cache-save

.github/workflows/ios_builds.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
platform: ios
3838
target: template_release
3939
tests: false
40+
scons-cache-limit: 1
4041

4142
- name: Save Godot build cache
4243
uses: ./.github/actions/godot-cache-save

.github/workflows/linux_builds.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
proj-conv: true
3636
api-compat: true
3737
artifact: true
38+
cache-limit: 1
3839

3940
- 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)
4041
cache-name: linux-editor-double-sanitizers
@@ -49,6 +50,7 @@ jobs:
4950
api-dump: true
5051
# Skip 2GiB artifact speeding up action.
5152
artifact: false
53+
cache-limit: 7
5254

5355
- name: Editor with clang sanitizers (target=editor, tests=yes, dev_build=yes, use_asan=yes, use_ubsan=yes, use_llvm=yes, linker=lld)
5456
cache-name: linux-editor-llvm-sanitizers
@@ -61,6 +63,7 @@ jobs:
6163
artifact: false
6264
# Test our oldest supported SCons/Python versions on one arbitrary editor build.
6365
legacy-scons: true
66+
cache-limit: 7
6467

6568
- name: Editor with ThreadSanitizer (target=editor, tests=yes, dev_build=yes, use_tsan=yes, use_llvm=yes, linker=lld)
6669
cache-name: linux-editor-thread-sanitizer
@@ -71,6 +74,7 @@ jobs:
7174
build-mono: false
7275
# Skip 2GiB artifact speeding up action.
7376
artifact: false
77+
cache-limit: 5
7478

7579
- name: Template w/ Mono (target=template_release, tests=yes)
7680
cache-name: linux-template-mono
@@ -80,6 +84,7 @@ jobs:
8084
build-mono: false
8185
tests: true
8286
artifact: true
87+
cache-limit: 1
8388

8489
- name: Minimal template (target=template_release, tests=yes, everything disabled)
8590
cache-name: linux-template-minimal
@@ -88,6 +93,7 @@ jobs:
8893
bin: ./bin/godot.linuxbsd.template_release.x86_64
8994
tests: true
9095
artifact: true
96+
cache-limit: 1
9197

9298
steps:
9399
- name: Checkout
@@ -140,6 +146,7 @@ jobs:
140146
platform: linuxbsd
141147
target: ${{ matrix.target }}
142148
tests: ${{ matrix.tests }}
149+
scons-cache-limit: ${{ matrix.cache-limit }}
143150

144151
- name: Save Godot build cache
145152
uses: ./.github/actions/godot-cache-save

.github/workflows/macos_builds.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,15 @@ jobs:
2525
target: editor
2626
tests: true
2727
bin: ./bin/godot.macos.editor.universal
28+
cache-limit: 1
2829

2930
- name: Template (target=template_release, tests=yes)
3031
cache-name: macos-template
3132
target: template_release
3233
tests: true
3334
sconsflags: debug_symbols=no
3435
bin: ./bin/godot.macos.template_release.universal
36+
cache-limit: 1
3537

3638
steps:
3739
- name: Checkout
@@ -59,6 +61,7 @@ jobs:
5961
platform: macos
6062
target: ${{ matrix.target }}
6163
tests: ${{ matrix.tests }}
64+
scons-cache-limit: 0 # Only cap on second run to avoid purging unnecessarily
6265

6366
- name: Compilation (arm64)
6467
uses: ./.github/actions/godot-build
@@ -67,6 +70,7 @@ jobs:
6770
platform: macos
6871
target: ${{ matrix.target }}
6972
tests: ${{ matrix.tests }}
73+
scons-cache-limit: ${{ matrix.cache-limit }}
7074

7175
- name: Save Godot build cache
7276
uses: ./.github/actions/godot-cache-save

.github/workflows/web_builds.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ jobs:
6767
platform: web
6868
target: ${{ matrix.target }}
6969
tests: ${{ matrix.tests }}
70+
scons-cache-limit: 0.5
7071

7172
- name: Save Godot build cache
7273
uses: ./.github/actions/godot-cache-save

.github/workflows/windows_builds.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
sconsflags: debug_symbols=no vsproj=yes vsproj_gen_only=no windows_subsystem=console
3232
bin: ./bin/godot.windows.editor.x86_64.exe
3333
compiler: msvc
34+
cache-limit: 2
3435

3536
- name: Editor w/ clang-cl (target=editor, tests=yes, use_llvm=yes)
3637
cache-name: windows-editor-clang
@@ -39,6 +40,7 @@ jobs:
3940
sconsflags: debug_symbols=no windows_subsystem=console use_llvm=yes
4041
bin: ./bin/godot.windows.editor.x86_64.llvm.exe
4142
compiler: clang
43+
cache-limit: 1
4244

4345
- name: Template (target=template_release, tests=yes)
4446
cache-name: windows-template
@@ -47,6 +49,7 @@ jobs:
4749
sconsflags: debug_symbols=no
4850
bin: ./bin/godot.windows.template_release.x86_64.console.exe
4951
compiler: msvc
52+
cache-limit: 2
5053

5154
- name: Template w/ GCC (target=template_release, tests=yes, use_mingw=yes)
5255
cache-name: windows-template-gcc
@@ -56,6 +59,7 @@ jobs:
5659
sconsflags: debug_symbols=no use_mingw=yes
5760
bin: ./bin/godot.windows.template_release.x86_64.console.exe
5861
compiler: gcc
62+
cache-limit: 1
5963

6064
steps:
6165
- name: Checkout
@@ -93,6 +97,7 @@ jobs:
9397
platform: windows
9498
target: ${{ matrix.target }}
9599
tests: ${{ matrix.tests }}
100+
scons-cache-limit: ${{ matrix.cache-limit }}
96101

97102
- name: Save Godot build cache
98103
uses: ./.github/actions/godot-cache-save

0 commit comments

Comments
 (0)