From 7734d16d50fabab66ceeddfc61766a6ec8d8ac4c Mon Sep 17 00:00:00 2001 From: unvermuthet <40361609+unvermuthet@users.noreply.github.com> Date: Wed, 5 Mar 2025 10:35:38 +0100 Subject: [PATCH] ci: use caching actions from godot-cpp --- .github/workflows/builds.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) 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