GH: Utilize build cache
This commit is contained in:
parent
420c883b06
commit
0d644d3d20
|
@ -136,6 +136,17 @@ jobs:
|
||||||
./relocate-sdk.sh
|
./relocate-sdk.sh
|
||||||
cd ..
|
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
|
- name: Compilation
|
||||||
env:
|
env:
|
||||||
SCONS_CACHE: ${{github.workspace}}/.scons_cache/
|
SCONS_CACHE: ${{github.workspace}}/.scons_cache/
|
||||||
|
@ -163,5 +174,3 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: godot.limboai.${{matrix.target}}.linux.${{matrix.arch}}${{ matrix.build-mono == true && '.mono' || '' }}
|
name: godot.limboai.${{matrix.target}}.linux.${{matrix.arch}}${{ matrix.build-mono == true && '.mono' || '' }}
|
||||||
path: bin/*
|
path: bin/*
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -83,6 +83,7 @@ jobs:
|
||||||
# arch: x86_64
|
# arch: x86_64
|
||||||
# build-mono: true
|
# build-mono: true
|
||||||
# artifact-name: macos-mono-editor
|
# artifact-name: macos-mono-editor
|
||||||
|
# cache-name: macos-editor
|
||||||
|
|
||||||
# - name: .NET Template (x86_64, release)
|
# - name: .NET Template (x86_64, release)
|
||||||
# target: template_release
|
# target: template_release
|
||||||
|
@ -101,6 +102,7 @@ jobs:
|
||||||
# arch: arm64
|
# arch: arm64
|
||||||
# build-mono: true
|
# build-mono: true
|
||||||
# artifact-name: macos-mono-editor
|
# artifact-name: macos-mono-editor
|
||||||
|
# cache-name: macos-editor
|
||||||
|
|
||||||
# - name: .NET Template (arm64, release)
|
# - name: .NET Template (arm64, release)
|
||||||
# target: template_release
|
# target: template_release
|
||||||
|
@ -155,6 +157,17 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
sh misc/scripts/install_vulkan_sdk_macos.sh
|
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
|
- name: Compilation
|
||||||
env:
|
env:
|
||||||
SCONS_CACHE: ${{github.workspace}}/.scons_cache/
|
SCONS_CACHE: ${{github.workspace}}/.scons_cache/
|
||||||
|
|
|
@ -22,10 +22,6 @@ on:
|
||||||
type: string
|
type: string
|
||||||
default: master
|
default: master
|
||||||
|
|
||||||
push:
|
|
||||||
branches: [github-workflows]
|
|
||||||
|
|
||||||
|
|
||||||
# Global Settings
|
# Global Settings
|
||||||
env:
|
env:
|
||||||
SCONS_CACHE_LIMIT: 4096
|
SCONS_CACHE_LIMIT: 4096
|
||||||
|
|
|
@ -133,6 +133,17 @@ jobs:
|
||||||
- name: Setup MSVC problem matcher
|
- name: Setup MSVC problem matcher
|
||||||
uses: ammaraskar/msvc-problem-matcher@master
|
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
|
- name: Compilation
|
||||||
env:
|
env:
|
||||||
SCONS_CACHE: ${{github.workspace}}/.scons_cache/
|
SCONS_CACHE: ${{github.workspace}}/.scons_cache/
|
||||||
|
|
Loading…
Reference in New Issue