We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1444be1 commit d913819Copy full SHA for d913819
.github/workflows/build_gdextension.yml
@@ -82,8 +82,23 @@ jobs:
82
python --version
83
scons --version
84
85
+ # Cache PR builds to reduce build time and speed up iteration.
86
+ - name: Set up SCons cache for PR builds
87
+ if: github.event_name == 'pull_request'
88
+ uses: actions/cache@v4
89
+ env:
90
+ KEY_BASE: ${{matrix.platform}}-${{matrix.target}}-${{matrix.arch}}
91
+ with:
92
+ path: ${{github.workspace}}/.scons_cache/
93
+ key: ${{env.KEY_BASE}}-${{github.sha}}
94
+ restore-keys: |
95
+ ${{env.KEY_BASE}}-${{github.sha}}
96
+ ${{env.KEY_BASE}}
97
+
98
- name: Compile GDExtension library
99
shell: bash
100
101
+ SCONS_CACHE: ${{github.workspace}}/.scons_cache/
102
run: |
103
scons platform=${{matrix.platform}} target=${{matrix.target}} arch=${{matrix.arch}}
104
0 commit comments