summaryrefslogtreecommitdiff
path: root/.github/workflows/linux_builds.yml
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-07-24 07:30:26 +0200
committerGitHub <noreply@github.com>2020-07-24 07:30:26 +0200
commit422a2da8c7c2d973e391703ea0c0249b2c6fa4c5 (patch)
tree014fb44871ef740d8f445e95501fbd9f8467474e /.github/workflows/linux_builds.yml
parent3811fb919e2053ec47510b5e04649c8f818ebe12 (diff)
parentafdce1e30c3ddf8e68d5dade28f81bd3a6c3e2ab (diff)
Merge pull request #40648 from RevoluPowered/github_actions_cache_fixes
GitHub actions cache fixes
Diffstat (limited to '.github/workflows/linux_builds.yml')
-rw-r--r--.github/workflows/linux_builds.yml18
1 files changed, 9 insertions, 9 deletions
diff --git a/.github/workflows/linux_builds.yml b/.github/workflows/linux_builds.yml
index 8806a567fa..1d2d5a3fa7 100644
--- a/.github/workflows/linux_builds.yml
+++ b/.github/workflows/linux_builds.yml
@@ -3,7 +3,7 @@ on: [push, pull_request]
# Global Cache Settings
env:
- SCONS_CACHE_LIMIT: 8192
+ SCONS_CACHE_LIMIT: 4096
jobs:
linux-editor:
@@ -33,11 +33,11 @@ jobs:
uses: actions/cache@v2
with:
path: ${{github.workspace}}/.scons_cache/
- key: ${{runner.os}}-editor-${{github.sha}}
+ key: ${{github.job}}-${GITHUB_REF##*/}-${{github.sha}}
restore-keys: |
- ${{runner.os}}-editor-${{github.sha}}
- ${{runner.os}}-editor
- ${{runner.os}}
+ ${{github.job}}-${GITHUB_REF##*/}-${{github.sha}}
+ ${{github.job}}-${GITHUB_REF##*/}
+ ${{github.job}}
# Use python 3.x release (works cross platform; best to keep self contained in it's own step)
- name: Set up Python 3.x
@@ -90,11 +90,11 @@ jobs:
uses: actions/cache@v2
with:
path: ${{github.workspace}}/.scons_cache/
- key: ${{runner.os}}-template-${{github.sha}}
+ key: ${{github.job}}-${GITHUB_REF##*/}-${{github.sha}}
restore-keys: |
- ${{runner.os}}-template-${{github.sha}}
- ${{runner.os}}-template
- ${{runner.os}}
+ ${{github.job}}-${GITHUB_REF##*/}-${{github.sha}}
+ ${{github.job}}-${GITHUB_REF##*/}
+ ${{github.job}}
# Use python 3.x release (works cross platform)
- name: Set up Python 3.x