Skip to content

Commit

Permalink
caching take 2
Browse files Browse the repository at this point in the history
  • Loading branch information
pkdawson committed Apr 19, 2024
1 parent b4d91db commit 31f5ef4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/gdext.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,13 @@ jobs:
id: cache-godot-cpp
with:
path: |
gdext/godot-cpp
key: ${{ runner.os }}-${{ hashFiles('gdext/godot-cpp/gdextension/extension_api.json') }}
gdext/scons_cache
key: godot-cpp-${{ runner.os }}-${{ hashFiles('gdext/godot-cpp/gdextension/extension_api.json') }}

- name: Build debug
run: |
cd gdext
ls -R
scons
- name: Build release
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ gdext/proj/addons/imgui-godot/
gdext/samples/project/addons/
addons/imgui-godot/imgui-godot-native.gdextension
addons/imgui-godot/include/*.h
scons_cache
2 changes: 1 addition & 1 deletion gdext/SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import shutil
import subprocess

env = SConscript("godot-cpp/SConstruct")
env = env.Clone()
env.CacheDir("scons_cache")
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 31f5ef4

Please sign in to comment.