@@ -63,18 +63,26 @@ jobs:
6363 em-version : 3.1.62
6464
6565 # Build GDExtension (with caches)
66- - name : Cache .scons_cache
67- uses : actions/cache@v4
66+
67+ - name : Restore .scons_cache
68+ uses : ./godot-cpp/.github/actions/godot-cache-restore
6869 with :
69- path : ${{ github.workspace }}/.scons-cache/
70- key : ${{ matrix.target.platform }}_${{ matrix.target.arch }}_${{ matrix.float-precision }}_${{ matrix.target-type }}_cache
70+ scons-cache : ${{ github.workspace }}/.scons-cache/
71+ cache-name : ${{ matrix.target.platform }}_${{ matrix.target.arch }}_${{ matrix.float-precision }}_${{ matrix.target-type }}
72+
7173 - name : Build GDExtension Debug Build
7274 shell : sh
7375 env :
7476 SCONS_CACHE : ${{ github.workspace }}/.scons-cache/
7577 run : |
7678 scons target=${{ matrix.target-type }} platform=${{ matrix.target.platform }} arch=${{ matrix.target.arch }} precision=${{ matrix.float-precision }}
7779
80+ - name : Save .scons_cache
81+ uses : ./godot-cpp/.github/actions/godot-cache-save
82+ with :
83+ scons-cache : ${{ github.workspace }}/.scons-cache/
84+ cache-name : ${{ matrix.target.platform }}_${{ matrix.target.arch }}_${{ matrix.float-precision }}_${{ matrix.target-type }}
85+
7886 # Sign the binary (macOS only)
7987 - name : Mac Sign
8088 # Disable sign if secrets are not set
94102 # Clean up compilation files
95103 - name : Windows - Delete compilation files
96104 if : ${{ matrix.target.platform == 'windows' }}
97- shell : pwsh
105+ shell : sh
98106 run : |
99- Remove-Item bin/* -Include * .exp, *.lib, *.pdb -Force
107+ rm -f bin/windows/* .exp bin/windows/ *.lib bin/windows/ *.pdb
100108
101109 # Upload the build
102110 - name : Upload Artifact
0 commit comments