mirror of
https://github.com/godotengine/godot-cpp-template.git
synced 2026-01-08 06:09:44 +03:00
ci: use caching actions from godot-cpp
This commit is contained in:
16
.github/workflows/builds.yml
vendored
16
.github/workflows/builds.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user