Skip to content

Commit 86aa0e6

Browse files
committed
[ci] Add scons cache
1 parent 09e3c4e commit 86aa0e6

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/build.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,36 @@ jobs:
8989
with:
9090
key: ccache-${{ matrix.identifier }}
9191

92+
- name: Restore scons cache
93+
if: ${{ matrix.precision == 'double' }}
94+
uses: actions/cache/restore@v3
95+
with:
96+
path: ${{ github.workspace }}/.scons-cache/
97+
key: ${{ matrix.identifier }}-scons-${{ github.ref }}-${{ github.sha }}
98+
restore-keys: |
99+
${{ matrix.identifier }}-scons-${{ github.ref }}-${{ github.sha }}
100+
${{ matrix.identifier }}-scons-${{ github.ref }}
101+
${{ matrix.identifier }}-scons
102+
92103
- name: Compile Godot (Double Precision)
93104
if: ${{ matrix.precision == 'double' }}
94105
shell: sh
95106
working-directory: ./extern/godot-engine
96107
run: |
97108
scons precision=double
109+
110+
- name: Save scons cache
111+
if: ${{ matrix.precision == 'double' }}
112+
uses: actions/cache/save@v4
113+
with:
114+
path: ${{ github.workspace }}/.scons-cache/
115+
key: ${{ matrix.identifier }}-scons-${{ github.ref }}-${{ github.sha }}
116+
117+
- name: Dump API
118+
if: ${{ matrix.precision == 'double' }}
119+
shell: sh
120+
working-directory: ./extern/godot-engine/bin
121+
run: |
98122
./godot.linuxbsd.editor.double.x86_64 --dump-gdextension-interface
99123
./godot.linuxbsd.editor.double.x86_64 --dump-extension-api
100124

0 commit comments

Comments
 (0)