Merge pull request #40648 from RevoluPowered/github_actions_cache_fixes
GitHub actions cache fixes
This commit is contained in:
commit
422a2da8c7
5 changed files with 36 additions and 35 deletions
10
.github/workflows/android_builds.yml
vendored
10
.github/workflows/android_builds.yml
vendored
|
@ -3,7 +3,7 @@ on: [push, pull_request]
|
||||||
|
|
||||||
# Global Cache Settings
|
# Global Cache Settings
|
||||||
env:
|
env:
|
||||||
SCONS_CACHE_LIMIT: 8192
|
SCONS_CACHE_LIMIT: 4096
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
android-template:
|
android-template:
|
||||||
|
@ -43,11 +43,11 @@ jobs:
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ${{github.workspace}}/.scons_cache/
|
path: ${{github.workspace}}/.scons_cache/
|
||||||
key: ${{runner.os}}-template-${{github.sha}}
|
key: ${{github.job}}-${GITHUB_REF##*/}-${{github.sha}}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{runner.os}}-template-${{github.sha}}
|
${{github.job}}-${GITHUB_REF##*/}-${{github.sha}}
|
||||||
${{runner.os}}-template
|
${{github.job}}-${GITHUB_REF##*/}
|
||||||
${{runner.os}}
|
${{github.job}}
|
||||||
|
|
||||||
# Use python 3.x release (works cross platform)
|
# Use python 3.x release (works cross platform)
|
||||||
- name: Set up Python 3.x
|
- name: Set up Python 3.x
|
||||||
|
|
7
.github/workflows/javascript_builds.yml
vendored
7
.github/workflows/javascript_builds.yml
vendored
|
@ -3,7 +3,7 @@ on: [push, pull_request]
|
||||||
|
|
||||||
# Global Cache Settings
|
# Global Cache Settings
|
||||||
env:
|
env:
|
||||||
SCONS_CACHE_LIMIT: 8192
|
SCONS_CACHE_LIMIT: 4096
|
||||||
EM_VERSION: latest
|
EM_VERSION: latest
|
||||||
EM_CACHE_FOLDER: 'emsdk-cache'
|
EM_CACHE_FOLDER: 'emsdk-cache'
|
||||||
|
|
||||||
|
@ -29,9 +29,10 @@ jobs:
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ${{github.workspace}}/.scons_cache/
|
path: ${{github.workspace}}/.scons_cache/
|
||||||
key: ${{github.job}}-${{github.sha}}
|
key: ${{github.job}}-${GITHUB_REF##*/}-${{github.sha}}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{github.job}}-${{github.sha}}
|
${{github.job}}-${GITHUB_REF##*/}-${{github.sha}}
|
||||||
|
${{github.job}}-${GITHUB_REF##*/}
|
||||||
${{github.job}}
|
${{github.job}}
|
||||||
|
|
||||||
# Additional cache for Emscripten generated system libraries
|
# Additional cache for Emscripten generated system libraries
|
||||||
|
|
18
.github/workflows/linux_builds.yml
vendored
18
.github/workflows/linux_builds.yml
vendored
|
@ -3,7 +3,7 @@ on: [push, pull_request]
|
||||||
|
|
||||||
# Global Cache Settings
|
# Global Cache Settings
|
||||||
env:
|
env:
|
||||||
SCONS_CACHE_LIMIT: 8192
|
SCONS_CACHE_LIMIT: 4096
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
linux-editor:
|
linux-editor:
|
||||||
|
@ -33,11 +33,11 @@ jobs:
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ${{github.workspace}}/.scons_cache/
|
path: ${{github.workspace}}/.scons_cache/
|
||||||
key: ${{runner.os}}-editor-${{github.sha}}
|
key: ${{github.job}}-${GITHUB_REF##*/}-${{github.sha}}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{runner.os}}-editor-${{github.sha}}
|
${{github.job}}-${GITHUB_REF##*/}-${{github.sha}}
|
||||||
${{runner.os}}-editor
|
${{github.job}}-${GITHUB_REF##*/}
|
||||||
${{runner.os}}
|
${{github.job}}
|
||||||
|
|
||||||
# Use python 3.x release (works cross platform; best to keep self contained in it's own step)
|
# Use python 3.x release (works cross platform; best to keep self contained in it's own step)
|
||||||
- name: Set up Python 3.x
|
- name: Set up Python 3.x
|
||||||
|
@ -90,11 +90,11 @@ jobs:
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ${{github.workspace}}/.scons_cache/
|
path: ${{github.workspace}}/.scons_cache/
|
||||||
key: ${{runner.os}}-template-${{github.sha}}
|
key: ${{github.job}}-${GITHUB_REF##*/}-${{github.sha}}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{runner.os}}-template-${{github.sha}}
|
${{github.job}}-${GITHUB_REF##*/}-${{github.sha}}
|
||||||
${{runner.os}}-template
|
${{github.job}}-${GITHUB_REF##*/}
|
||||||
${{runner.os}}
|
${{github.job}}
|
||||||
|
|
||||||
# Use python 3.x release (works cross platform)
|
# Use python 3.x release (works cross platform)
|
||||||
- name: Set up Python 3.x
|
- name: Set up Python 3.x
|
||||||
|
|
18
.github/workflows/macos_builds.yml
vendored
18
.github/workflows/macos_builds.yml
vendored
|
@ -3,7 +3,7 @@ on: [push, pull_request]
|
||||||
|
|
||||||
# Global Cache Settings
|
# Global Cache Settings
|
||||||
env:
|
env:
|
||||||
SCONS_CACHE_LIMIT: 8192
|
SCONS_CACHE_LIMIT: 4096
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
macos-editor:
|
macos-editor:
|
||||||
|
@ -22,11 +22,11 @@ jobs:
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ${{github.workspace}}/.scons_cache/
|
path: ${{github.workspace}}/.scons_cache/
|
||||||
key: ${{runner.os}}-editor-${{github.sha}}
|
key: ${{github.job}}-${GITHUB_REF##*/}-${{github.sha}}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{runner.os}}-editor-${{github.sha}}
|
${{github.job}}-${GITHUB_REF##*/}-${{github.sha}}
|
||||||
${{runner.os}}-editor
|
${{github.job}}-${GITHUB_REF##*/}
|
||||||
${{runner.os}}
|
${{github.job}}
|
||||||
|
|
||||||
# Use python 3.x release (works cross platform; best to keep self contained in it's own step)
|
# Use python 3.x release (works cross platform; best to keep self contained in it's own step)
|
||||||
- name: Set up Python 3.x
|
- name: Set up Python 3.x
|
||||||
|
@ -67,11 +67,11 @@ jobs:
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ${{github.workspace}}/.scons_cache/
|
path: ${{github.workspace}}/.scons_cache/
|
||||||
key: ${{runner.os}}-template-${{github.sha}}
|
key: ${{github.job}}-${GITHUB_REF##*/}-${{github.sha}}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{runner.os}}-template-${{github.sha}}
|
${{github.job}}-${GITHUB_REF##*/}-${{github.sha}}
|
||||||
${{runner.os}}-template
|
${{github.job}}-${GITHUB_REF##*/}
|
||||||
${{runner.os}}
|
${{github.job}}
|
||||||
|
|
||||||
# Use python 3.x release (works cross platform)
|
# Use python 3.x release (works cross platform)
|
||||||
- name: Set up Python 3.x
|
- name: Set up Python 3.x
|
||||||
|
|
18
.github/workflows/windows_builds.yml
vendored
18
.github/workflows/windows_builds.yml
vendored
|
@ -5,7 +5,7 @@ on: [push, pull_request]
|
||||||
# SCONS_CACHE for windows must be set in the build environment
|
# SCONS_CACHE for windows must be set in the build environment
|
||||||
env:
|
env:
|
||||||
SCONS_CACHE_MSVC_CONFIG: true
|
SCONS_CACHE_MSVC_CONFIG: true
|
||||||
SCONS_CACHE_LIMIT: 8192
|
SCONS_CACHE_LIMIT: 4096
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
windows-editor:
|
windows-editor:
|
||||||
|
@ -26,11 +26,11 @@ jobs:
|
||||||
uses: RevoluPowered/cache@v2.1
|
uses: RevoluPowered/cache@v2.1
|
||||||
with:
|
with:
|
||||||
path: /.scons_cache/
|
path: /.scons_cache/
|
||||||
key: ${{runner.os}}-editor-${{github.sha}}
|
key: ${{github.job}}-${GITHUB_REF##*/}-${{github.sha}}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{runner.os}}-editor-${{github.sha}}
|
${{github.job}}-${GITHUB_REF##*/}-${{github.sha}}
|
||||||
${{runner.os}}-editor
|
${{github.job}}-${GITHUB_REF##*/}
|
||||||
${{runner.os}}
|
${{github.job}}
|
||||||
|
|
||||||
# Use python 3.x release (works cross platform; best to keep self contained in it's own step)
|
# Use python 3.x release (works cross platform; best to keep self contained in it's own step)
|
||||||
- name: Set up Python 3.x
|
- name: Set up Python 3.x
|
||||||
|
@ -80,11 +80,11 @@ jobs:
|
||||||
uses: RevoluPowered/cache@v2.1
|
uses: RevoluPowered/cache@v2.1
|
||||||
with:
|
with:
|
||||||
path: /.scons_cache/
|
path: /.scons_cache/
|
||||||
key: ${{runner.os}}-template-${{github.sha}}
|
key: ${{github.job}}-${GITHUB_REF##*/}-${{github.sha}}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{runner.os}}-template-${{github.sha}}
|
${{github.job}}-${GITHUB_REF##*/}-${{github.sha}}
|
||||||
${{runner.os}}-template
|
${{github.job}}-${GITHUB_REF##*/}
|
||||||
${{runner.os}}
|
${{github.job}}
|
||||||
|
|
||||||
# Use python 3.x release (works cross platform)
|
# Use python 3.x release (works cross platform)
|
||||||
- name: Set up Python 3.x
|
- name: Set up Python 3.x
|
||||||
|
|
Loading…
Add table
Reference in a new issue