diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index cb5550b..a569972 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml @@ -63,11 +63,13 @@ jobs: em-version: 3.1.62 # Build GDExtension (with caches) - - name: Cache .scons_cache - uses: actions/cache@v4 + + - name: Restore .scons_cache + uses: ./godot-cpp/.github/actions/godot-cache-restore with: - path: ${{ github.workspace }}/.scons-cache/ - key: ${{ matrix.target.platform }}_${{ matrix.target.arch }}_${{ matrix.float-precision }}_${{ matrix.target-type }}_cache + scons-cache: ${{ github.workspace }}/.scons-cache/ + cache-name: ${{ matrix.target.platform }}_${{ matrix.target.arch }}_${{ matrix.float-precision }}_${{ matrix.target-type }} + - name: Build GDExtension Debug Build shell: sh env: @@ -75,6 +77,12 @@ jobs: run: | scons target=${{ matrix.target-type }} platform=${{ matrix.target.platform }} arch=${{ matrix.target.arch }} precision=${{ matrix.float-precision }} + - name: Save .scons_cache + uses: ./godot-cpp/.github/actions/godot-cache-save + with: + scons-cache: ${{ github.workspace }}/.scons-cache/ + cache-name: ${{ matrix.target.platform }}_${{ matrix.target.arch }}_${{ matrix.float-precision }}_${{ matrix.target-type }} + # Sign the binary (macOS only) - name: Mac Sign # Disable sign if secrets are not set