ci: use caching actions from godot-cpp

This commit is contained in:
unvermuthet
2025-03-05 10:35:38 +01:00
parent 8e13217ebe
commit 7734d16d50

View File

@@ -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