Browse Source

Add a minimal template build to CI

Co-authored-by: Rémi Verschelde <[email protected]>
Aaron Franke 3 years ago
parent
commit
ae713f8980

+ 8 - 0
.github/workflows/linux_builds.yml

@@ -51,6 +51,14 @@ jobs:
             build-mono: false
             build-mono: false
             artifact: true
             artifact: true
 
 
+          - name: Minimal Template (target=release, tools=no, everything disabled)
+            cache-name: linux-template-minimal
+            target: release
+            tools: false
+            tests: false
+            sconsflags: modules_enabled_by_default=no disable_3d=yes disable_advanced_gui=yes deprecated=no minizip=no
+            artifact: true
+
     steps:
     steps:
       - uses: actions/checkout@v2
       - uses: actions/checkout@v2
 
 

+ 2 - 0
modules/text_server_fb/text_server_fb.cpp

@@ -3267,7 +3267,9 @@ TextServerFallback::TextServerFallback() {
 };
 };
 
 
 TextServerFallback::~TextServerFallback() {
 TextServerFallback::~TextServerFallback() {
+#ifdef MODULE_FREETYPE_ENABLED
 	if (library != nullptr) {
 	if (library != nullptr) {
 		FT_Done_FreeType(library);
 		FT_Done_FreeType(library);
 	}
 	}
+#endif
 };
 };

+ 2 - 0
scene/animation/animation_tree.cpp

@@ -901,7 +901,9 @@ void AnimationTree::_process_graph(real_t p_delta) {
 			real_t weight = as.blend;
 			real_t weight = as.blend;
 			bool seeked = as.seeked;
 			bool seeked = as.seeked;
 			int pingponged = as.pingponged;
 			int pingponged = as.pingponged;
+#ifndef _3D_DISABLED
 			bool backward = signbit(delta);
 			bool backward = signbit(delta);
+#endif // _3D_DISABLED
 
 
 			for (int i = 0; i < a->get_track_count(); i++) {
 			for (int i = 0; i < a->get_track_count(); i++) {
 				NodePath path = a->track_get_path(i);
 				NodePath path = a->track_get_path(i);