File tree Expand file tree Collapse file tree 3 files changed +29
-7
lines changed Expand file tree Collapse file tree 3 files changed +29
-7
lines changed Original file line number Diff line number Diff line change 1
- name : Setup Godot build cache
2
- description : Setup Godot build cache.
1
+ name : Restore Godot build cache
2
+ description : Restore Godot build cache.
3
3
inputs :
4
4
cache-name :
5
5
description : The cache base name (job name by default).
@@ -10,9 +10,8 @@ inputs:
10
10
runs :
11
11
using : " composite"
12
12
steps :
13
- # Upload cache on completion and check it out now
14
- - name : Load .scons_cache directory
15
- uses : actions/cache@v3
13
+ - name : Restore .scons_cache directory
14
+ uses : actions/cache/restore@v3
16
15
with :
17
16
path : ${{inputs.scons-cache}}
18
17
key : ${{inputs.cache-name}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}}
Original file line number Diff line number Diff line change
1
+ name : Save Godot build cache
2
+ description : Save Godot build cache.
3
+ inputs :
4
+ cache-name :
5
+ description : The cache base name (job name by default).
6
+ default : " ${{github.job}}"
7
+ scons-cache :
8
+ description : The SCons cache path.
9
+ default : " ${{github.workspace}}/.scons-cache/"
10
+ runs :
11
+ using : " composite"
12
+ steps :
13
+ - name : Save SCons cache directory
14
+ uses : actions/cache/save@v4
15
+ with :
16
+ path : ${{inputs.scons-cache}}
17
+ key : ${{inputs.cache-name}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}}
Original file line number Diff line number Diff line change 99
99
with :
100
100
submodules : recursive
101
101
102
- - name : Setup Godot build cache
103
- uses : ./.github/actions/godot-cache
102
+ - name : Restore Godot build cache
103
+ uses : ./.github/actions/godot-cache-restore
104
104
with :
105
105
cache-name : ${{ matrix.cache-name }}
106
106
continue-on-error : true
@@ -153,6 +153,12 @@ jobs:
153
153
cd test
154
154
scons platform=${{ matrix.platform }} verbose=yes target=template_release ${{ matrix.flags }}
155
155
156
+ - name : Save Godot build cache
157
+ uses : ./.github/actions/godot-cache-save
158
+ with :
159
+ cache-name : ${{ matrix.cache-name }}
160
+ continue-on-error : true
161
+
156
162
- name : Download latest Godot artifacts
157
163
uses : dsnopek/action-download-artifact@1322f74e2dac9feed2ee76a32d9ae1ca3b4cf4e9
158
164
if : ${{ matrix.run-tests && env.GODOT_TEST_VERSION == 'master' }}
You can’t perform that action at this time.
0 commit comments