Skip to content

Commit

Permalink
try caching
Browse files Browse the repository at this point in the history
  • Loading branch information
pkdawson committed Apr 19, 2024
1 parent 9288887 commit 07c977e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/gdext.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,20 @@ jobs:
cd gdext
${{ env.VCPKG_ROOT }}/vcpkg install --triplet x64-linux
- uses: actions/cache@v4
id: cache-godot-cpp
with:
path: |
gdext/godot-cpp
key: ${{ runner.os }}-${{ hashFiles('gdext/godot-cpp/gdextension/extension_api.json') }}

- name: Build godot-cpp
if: steps.cache-godot-cpp.outputs.cache-hit != 'true'
run: |
cd gdext/godot-cpp
scons
scons target=template_release
- name: Build debug
run: |
cd gdext
Expand Down Expand Up @@ -188,6 +202,7 @@ jobs:
run: |
ls -R
rm addons/imgui-godot/bin/*.pdb
mkdir addons/imgui-godot/include
cp -r gdext/include/*.h addons/imgui-godot/include/
env
Expand Down
1 change: 1 addition & 0 deletions gdext/SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import shutil
import subprocess

env = SConscript("godot-cpp/SConstruct")
env = env.Clone()
env.Append(CPPDEFINES=['IMGUI_USER_CONFIG="\\"imconfig-godot.h\\""', "IGN_EXPORT"])
env.Append(CPPPATH=["src/", "imgui/", "include/", "gen/"])
env.Replace(CXXFLAGS=str(env["CXXFLAGS"]).replace("c++17", "c++20"))
Expand Down

0 comments on commit 07c977e

Please sign in to comment.