Skip to content

Commit

Permalink
Update build.yml to use new Godot build cache
Browse files Browse the repository at this point in the history
  • Loading branch information
2shady4u committed Aug 15, 2024
1 parent 08abe90 commit 053da40
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ jobs:
lfs: true
submodules: recursive

- name: Setup Godot build cache
uses: ./godot-cpp/.github/actions/godot-cache
- name: Restore Godot build cache
uses: ./godot-cpp/.github/actions/godot-cache-restore
with:
cache-name: ${{ matrix.cache-name }}-${{ matrix.target }}
continue-on-error: true
Expand Down Expand Up @@ -99,6 +99,12 @@ jobs:
cd ${{ env.PROJECT_FOLDER }}
scons platform=${{ matrix.platform }} target=${{ matrix.target }} target_path=${{ env.TARGET_PATH }} target_name=${{ env.TARGET_NAME }} -j6 ${{ matrix.flags }}
- name: Save Godot build cache
uses: ./godot-cpp/.github/actions/godot-cache-save
with:
cache-name: ${{ matrix.cache-name }}-${{ matrix.target }}
continue-on-error: true

- name: Upload Artifact
env:
ARTIFACT_FOLDER: ${{ env.PROJECT_FOLDER }}/${{ env.TARGET_PATH }}
Expand Down
2 changes: 1 addition & 1 deletion src/register_types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ void initialize_sqlite_module(ModuleInitializationLevel p_level) {
return;
}

ClassDB::register_class<SQLite>();
GDREGISTER_CLASS(SQLite);
}

void uninitialize_sqlite_module(ModuleInitializationLevel p_level) {
Expand Down

0 comments on commit 053da40

Please sign in to comment.