2022-03-23 20:46:05 +01:00
|
|
|
name: Setup Pandemonium build cache
|
|
|
|
description: Setup Pandemonium build cache.
|
2022-03-15 13:29:32 +01:00
|
|
|
inputs:
|
|
|
|
cache-name:
|
|
|
|
description: The cache base name (job name by default).
|
|
|
|
default: "${{github.job}}"
|
|
|
|
scons-cache:
|
|
|
|
description: The scons cache path.
|
|
|
|
default: "${{github.workspace}}/.scons-cache/"
|
|
|
|
runs:
|
|
|
|
using: "composite"
|
|
|
|
steps:
|
|
|
|
# Upload cache on completion and check it out now
|
|
|
|
- name: Load .scons_cache directory
|
2022-09-17 09:55:21 +02:00
|
|
|
uses: actions/cache@v3
|
2022-03-15 13:29:32 +01:00
|
|
|
with:
|
|
|
|
path: ${{inputs.scons-cache}}
|
2022-03-20 11:19:29 +01:00
|
|
|
key: ${{inputs.cache-name}}-${{env.PANDEMONIUM_BASE_BRANCH}}-${{github.ref}}-${{github.sha}}
|
2022-03-15 13:29:32 +01:00
|
|
|
restore-keys: |
|
2022-03-20 11:19:29 +01:00
|
|
|
${{inputs.cache-name}}-${{env.PANDEMONIUM_BASE_BRANCH}}-${{github.ref}}-${{github.sha}}
|
|
|
|
${{inputs.cache-name}}-${{env.PANDEMONIUM_BASE_BRANCH}}-${{github.ref}}
|
|
|
|
${{inputs.cache-name}}-${{env.PANDEMONIUM_BASE_BRANCH}}
|