Improve the cache keys to prevent clashes for the wrong type of build
This commit is contained in:
parent
3c07d0ff32
commit
afdce1e30c
5 changed files with 31 additions and 30 deletions
8
.github/workflows/android_builds.yml
vendored
8
.github/workflows/android_builds.yml
vendored
|
@ -43,11 +43,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
|
||||
|
|
5
.github/workflows/javascript_builds.yml
vendored
5
.github/workflows/javascript_builds.yml
vendored
|
@ -29,9 +29,10 @@ jobs:
|
|||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ${{github.workspace}}/.scons_cache/
|
||||
key: ${{github.job}}-${{github.sha}}
|
||||
key: ${{github.job}}-${GITHUB_REF##*/}-${{github.sha}}
|
||||
restore-keys: |
|
||||
${{github.job}}-${{github.sha}}
|
||||
${{github.job}}-${GITHUB_REF##*/}-${{github.sha}}
|
||||
${{github.job}}-${GITHUB_REF##*/}
|
||||
${{github.job}}
|
||||
|
||||
# Additional cache for Emscripten generated system libraries
|
||||
|
|
16
.github/workflows/linux_builds.yml
vendored
16
.github/workflows/linux_builds.yml
vendored
|
@ -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
|
||||
|
|
16
.github/workflows/macos_builds.yml
vendored
16
.github/workflows/macos_builds.yml
vendored
|
@ -22,11 +22,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
|
||||
|
@ -67,11 +67,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
|
||||
|
|
16
.github/workflows/windows_builds.yml
vendored
16
.github/workflows/windows_builds.yml
vendored
|
@ -26,11 +26,11 @@ jobs:
|
|||
uses: RevoluPowered/cache@v2.1
|
||||
with:
|
||||
path: /.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
|
||||
|
@ -80,11 +80,11 @@ jobs:
|
|||
uses: RevoluPowered/cache@v2.1
|
||||
with:
|
||||
path: /.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
|
||||
|
|
Loading…
Reference in a new issue