diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2021-09-01 17:26:01 +0200 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2021-09-14 12:46:16 +0200 |
commit | 3dbf0084119e012da8f663c040c2474624a6a179 (patch) | |
tree | 0cbab50770085980c191211e1f444edfc1ae1820 /.github/actions/godot-cache | |
parent | 195ea41a7ad3dd83d33162d2656e7e383674d3aa (diff) |
[CI] Refactor CI actions, use sub-actions, matrices.
Diffstat (limited to '.github/actions/godot-cache')
-rw-r--r-- | .github/actions/godot-cache/action.yml | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/.github/actions/godot-cache/action.yml b/.github/actions/godot-cache/action.yml new file mode 100644 index 0000000000..db14a0b97a --- /dev/null +++ b/.github/actions/godot-cache/action.yml @@ -0,0 +1,22 @@ +name: Setup Godot build cache +description: Setup Godot build cache. +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 + uses: actions/cache@v2 + with: + path: ${{inputs.scons-cache}} + key: ${{inputs.cache-name}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}} + restore-keys: | + ${{inputs.cache-name}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}} + ${{inputs.cache-name}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}} + ${{inputs.cache-name}}-${{env.GODOT_BASE_BRANCH}} |