GH: Utilize build cache

This commit is contained in:
Serhii Snitsaruk 2023-07-31 22:45:24 +02:00
parent 420c883b06
commit 0d644d3d20
4 changed files with 35 additions and 6 deletions

View File

@ -136,6 +136,17 @@ jobs:
./relocate-sdk.sh
cd ..
# Upload cache on completion and check it out now
- name: Load .scons_cache directory
uses: actions/cache@v3
with:
path: ${{github.workspace}}/.scons_cache/
key: ${{matrix.cache-name}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}}
restore-keys: |
${{env.BIN}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}}
${{env.BIN}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}
${{env.BIN}}-${{env.GODOT_BASE_BRANCH}}
- name: Compilation
env:
SCONS_CACHE: ${{github.workspace}}/.scons_cache/
@ -163,5 +174,3 @@ jobs:
with:
name: godot.limboai.${{matrix.target}}.linux.${{matrix.arch}}${{ matrix.build-mono == true && '.mono' || '' }}
path: bin/*

View File

@ -83,6 +83,7 @@ jobs:
# arch: x86_64
# build-mono: true
# artifact-name: macos-mono-editor
# cache-name: macos-editor
# - name: .NET Template (x86_64, release)
# target: template_release
@ -101,6 +102,7 @@ jobs:
# arch: arm64
# build-mono: true
# artifact-name: macos-mono-editor
# cache-name: macos-editor
# - name: .NET Template (arm64, release)
# target: template_release
@ -155,6 +157,17 @@ jobs:
run: |
sh misc/scripts/install_vulkan_sdk_macos.sh
# Upload cache on completion and check it out now
- name: Load .scons_cache directory
uses: actions/cache@v3
with:
path: ${{github.workspace}}/.scons_cache/
key: ${{matrix.cache-name}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}}
restore-keys: |
${{env.BIN}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}}
${{env.BIN}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}
${{env.BIN}}-${{env.GODOT_BASE_BRANCH}}
- name: Compilation
env:
SCONS_CACHE: ${{github.workspace}}/.scons_cache/

View File

@ -22,10 +22,6 @@ on:
type: string
default: master
push:
branches: [github-workflows]
# Global Settings
env:
SCONS_CACHE_LIMIT: 4096

View File

@ -133,6 +133,17 @@ jobs:
- name: Setup MSVC problem matcher
uses: ammaraskar/msvc-problem-matcher@master
# Upload cache on completion and check it out now
- name: Load .scons_cache directory
uses: actions/cache@v3
with:
path: ${{github.workspace}}/.scons_cache/
key: ${{matrix.cache-name}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}}
restore-keys: |
${{env.BIN}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}}
${{env.BIN}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}
${{env.BIN}}-${{env.GODOT_BASE_BRANCH}}
- name: Compilation
env:
SCONS_CACHE: ${{github.workspace}}/.scons_cache/