GHA: Don't use SCons cache in release builds
This commit is contained in:
parent
44040dda06
commit
6d79b7474e
|
@ -165,15 +165,16 @@ jobs:
|
||||||
python --version
|
python --version
|
||||||
scons --version
|
scons --version
|
||||||
|
|
||||||
- name: Set up scons cache
|
# ! Note: we stopped using the scons cache in release builds.
|
||||||
uses: actions/cache@v4
|
# - name: Set up scons cache
|
||||||
with:
|
# uses: actions/cache@v4
|
||||||
path: ${{github.workspace}}/.scons_cache/
|
# with:
|
||||||
key: ${{env.BIN}}-${{inputs.godot-ref}}-${{inputs.limboai-ref}}-${{env.LIMBOAI_VERSION}}
|
# path: ${{github.workspace}}/.scons_cache/
|
||||||
restore-keys: |
|
# key: ${{env.BIN}}-${{inputs.godot-ref}}-${{inputs.limboai-ref}}-${{env.LIMBOAI_VERSION}}
|
||||||
${{env.BIN}}-${{inputs.godot-ref}}-${{inputs.limboai-ref}}-${{env.LIMBOAI_VERSION}}
|
# restore-keys: |
|
||||||
${{env.BIN}}-${{inputs.godot-ref}}-${{inputs.limboai-ref}}
|
# ${{env.BIN}}-${{inputs.godot-ref}}-${{inputs.limboai-ref}}-${{env.LIMBOAI_VERSION}}
|
||||||
${{env.BIN}}-${{inputs.godot-ref}}
|
# ${{env.BIN}}-${{inputs.godot-ref}}-${{inputs.limboai-ref}}
|
||||||
|
# ${{env.BIN}}-${{inputs.godot-ref}}
|
||||||
|
|
||||||
- name: Compilation
|
- name: Compilation
|
||||||
env:
|
env:
|
||||||
|
|
|
@ -11,7 +11,7 @@ on:
|
||||||
type: string
|
type: string
|
||||||
default: master
|
default: master
|
||||||
test-build:
|
test-build:
|
||||||
description: Limit the number of test builds
|
description: Limit to pre-defined test builds
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
debug-symbols:
|
debug-symbols:
|
||||||
|
@ -30,7 +30,7 @@ on:
|
||||||
type: string
|
type: string
|
||||||
default: master
|
default: master
|
||||||
test-build:
|
test-build:
|
||||||
description: Limit the number of test builds
|
description: Limit to pre-defined test builds
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
debug-symbols:
|
debug-symbols:
|
||||||
|
@ -285,6 +285,7 @@ jobs:
|
||||||
uses: ammaraskar/msvc-problem-matcher@master
|
uses: ammaraskar/msvc-problem-matcher@master
|
||||||
|
|
||||||
- name: Set up scons cache
|
- name: Set up scons cache
|
||||||
|
if: inputs.test-build # ! Only cache test/PR builds
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ${{github.workspace}}/.scons_cache/
|
path: ${{github.workspace}}/.scons_cache/
|
||||||
|
|
|
@ -145,15 +145,16 @@ jobs:
|
||||||
rm -Rf /tmp/InstallVulkan.app
|
rm -Rf /tmp/InstallVulkan.app
|
||||||
rm -f /tmp/vulkan-sdk.zip
|
rm -f /tmp/vulkan-sdk.zip
|
||||||
|
|
||||||
- name: Set up scons cache
|
# ! Note: we stopped using the scons cache in release builds.
|
||||||
uses: actions/cache@v4
|
# - name: Set up scons cache
|
||||||
with:
|
# uses: actions/cache@v4
|
||||||
path: ${{github.workspace}}/.scons_cache/
|
# with:
|
||||||
key: ${{env.BIN}}-${{inputs.godot-ref}}-${{inputs.limboai-ref}}-${{env.LIMBOAI_VERSION}}
|
# path: ${{github.workspace}}/.scons_cache/
|
||||||
restore-keys: |
|
# key: ${{env.BIN}}-${{inputs.godot-ref}}-${{inputs.limboai-ref}}-${{env.LIMBOAI_VERSION}}
|
||||||
${{env.BIN}}-${{inputs.godot-ref}}-${{inputs.limboai-ref}}-${{env.LIMBOAI_VERSION}}
|
# restore-keys: |
|
||||||
${{env.BIN}}-${{inputs.godot-ref}}-${{inputs.limboai-ref}}
|
# ${{env.BIN}}-${{inputs.godot-ref}}-${{inputs.limboai-ref}}-${{env.LIMBOAI_VERSION}}
|
||||||
${{env.BIN}}-${{inputs.godot-ref}}
|
# ${{env.BIN}}-${{inputs.godot-ref}}-${{inputs.limboai-ref}}
|
||||||
|
# ${{env.BIN}}-${{inputs.godot-ref}}
|
||||||
|
|
||||||
- name: Compilation
|
- name: Compilation
|
||||||
env:
|
env:
|
||||||
|
|
|
@ -227,6 +227,7 @@ jobs:
|
||||||
sudo apt-get install libwayland-dev
|
sudo apt-get install libwayland-dev
|
||||||
|
|
||||||
- name: Set up scons cache
|
- name: Set up scons cache
|
||||||
|
if: inputs.test-build # ! Only cache test/PR builds
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ${{github.workspace}}/.scons_cache/
|
path: ${{github.workspace}}/.scons_cache/
|
||||||
|
|
|
@ -175,6 +175,7 @@ jobs:
|
||||||
rm -f /tmp/vulkan-sdk.zip
|
rm -f /tmp/vulkan-sdk.zip
|
||||||
|
|
||||||
- name: Set up scons cache
|
- name: Set up scons cache
|
||||||
|
if: inputs.test-build # ! Only cache test/PR builds
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ${{github.workspace}}/.scons_cache/
|
path: ${{github.workspace}}/.scons_cache/
|
||||||
|
|
|
@ -120,15 +120,16 @@ jobs:
|
||||||
python --version
|
python --version
|
||||||
scons --version
|
scons --version
|
||||||
|
|
||||||
- name: Set up scons cache
|
# ! Note: we stopped using the scons cache in release builds.
|
||||||
uses: actions/cache@v4
|
# - name: Set up scons cache
|
||||||
with:
|
# uses: actions/cache@v4
|
||||||
path: ${{github.workspace}}/.scons_cache/
|
# with:
|
||||||
key: ${{env.CACHE_NAME}}-${{inputs.godot-ref}}-${{inputs.limboai-ref}}-${{env.LIMBOAI_VERSION}}
|
# path: ${{github.workspace}}/.scons_cache/
|
||||||
restore-keys: |
|
# key: ${{env.CACHE_NAME}}-${{inputs.godot-ref}}-${{inputs.limboai-ref}}-${{env.LIMBOAI_VERSION}}
|
||||||
${{env.CACHE_NAME}}-${{inputs.godot-ref}}-${{inputs.limboai-ref}}-${{env.LIMBOAI_VERSION}}
|
# restore-keys: |
|
||||||
${{env.CACHE_NAME}}-${{inputs.godot-ref}}-${{inputs.limboai-ref}}
|
# ${{env.CACHE_NAME}}-${{inputs.godot-ref}}-${{inputs.limboai-ref}}-${{env.LIMBOAI_VERSION}}
|
||||||
${{env.CACHE_NAME}}-${{inputs.godot-ref}}
|
# ${{env.CACHE_NAME}}-${{inputs.godot-ref}}-${{inputs.limboai-ref}}
|
||||||
|
# ${{env.CACHE_NAME}}-${{inputs.godot-ref}}
|
||||||
|
|
||||||
- name: Compilation
|
- name: Compilation
|
||||||
env:
|
env:
|
||||||
|
|
Loading…
Reference in New Issue