1717 # Commit hash
1818 GODOT_COMMIT_HASH : f62fdbde15035c5576dad93e586201f4d41ef0cb
1919 PROJECT_NAME : VectorTouch
20- BUILD_OPTIONS : target=template_release lto=full production=yes deprecated=no minizip=no brotli=no vulkan=no openxr=no use_volk=no disable_3d=yes disable_physics_2d=yes disable_navigation_2d=yes modules_enabled_by_default=no module_freetype_enabled=yes module_gdscript_enabled=yes module_svg_enabled=yes module_jpg_enabled=yes module_text_server_adv_enabled=yes graphite=no module_webp_enabled=yes module_mbedtls_enabled=yes swappy=no build_profile=../vectortouch/.github/disabled_classes.gdbuild
20+ BUILD_TYPE : ${{ github.event_name == 'workflow_dispatch' && 'release' || 'debug' }}
21+ BUILD_OPTIONS : lto=full production=yes deprecated=no minizip=no brotli=no vulkan=no openxr=no use_volk=no disable_3d=yes disable_physics_2d=yes disable_navigation_2d=yes modules_enabled_by_default=no module_freetype_enabled=yes module_gdscript_enabled=yes module_svg_enabled=yes module_jpg_enabled=yes module_text_server_adv_enabled=yes graphite=no module_webp_enabled=yes module_mbedtls_enabled=yes swappy=no build_profile=../vectortouch/.github/disabled_classes.gdbuild
2122 GODOT_REPO : https://github.com/godotengine/godot.git
2223
2324jobs :
4647 id : cache-template
4748 uses : actions/cache@v3
4849 with :
49- key : template-${{ env.PLATFORM }}-${{ env.GODOT_VERSION }}-${{ env.GODOT_RELEASE }}-${{ env.BUILD_OPTIONS }}
50+ key : template-${{ env.PLATFORM }}-${{ env.GODOT_VERSION }}-${{ env.GODOT_RELEASE }}-${{ env.BUILD_TYPE }}-${{ env. BUILD_OPTIONS }}
5051 path : |
5152 ~/.local/share/godot/export_templates/
5253
9394 with :
9495 path : vectortouch
9596
96- - if : ${{ steps.cache-template.outputs.cache-hit != 'true' && github.event_name != 'workflow_dispatch' }}
97+ - if : ${{ steps.cache-template.outputs.cache-hit != 'true' && env.BUILD_TYPE == 'debug' }}
9798 name : Build Godot debug template for Android
9899 run : |
99100 cd godot
@@ -103,11 +104,10 @@ jobs:
103104 mv ./bin/android_debug.apk ~/.local/share/godot/export_templates/${GODOT_VERSION}.${GODOT_RELEASE}/android_debug.apk
104105 mv ./bin/android_source.zip ~/.local/share/godot/export_templates/${GODOT_VERSION}.${GODOT_RELEASE}/android_source.zip
105106
106- - if : ${{ steps.cache-template.outputs.cache-hit != 'true' && github.event_name == 'workflow_dispatch ' }}
107+ - if : ${{ steps.cache-template.outputs.cache-hit != 'true' && env.BUILD_TYPE == 'release ' }}
107108 name : Build Godot release template for Android
108109 run : |
109110 cd godot
110- scons p=android arch=x86_32 ${BUILD_OPTIONS} debug_symbols=yes
111111 scons p=android arch=x86_64 ${BUILD_OPTIONS} debug_symbols=yes
112112 scons p=android arch=arm32 ${BUILD_OPTIONS} debug_symbols=yes
113113 scons p=android arch=arm64 ${BUILD_OPTIONS} debug_symbols=yes separate_debug_symbols=yes generate_android_binaries=yes
@@ -132,7 +132,7 @@ jobs:
132132 patch "android/build/src/com/godot/game/GodotApp.java" "godot_only/GodotApp.patch"
133133
134134 - name : Export debug project
135- if : github.event_name != 'workflow_dispatch '
135+ if : env.BUILD_TYPE == 'debug '
136136 env :
137137 GODOT_ANDROID_KEYSTORE_DEBUG_PATH : " ./godot_only/debug.keystore"
138138 GODOT_ANDROID_KEYSTORE_DEBUG_USER : " androiddebugkey"
@@ -143,7 +143,7 @@ jobs:
143143 godot --headless --export-debug "Android" artifacts/VectorTouch-debug.apk
144144
145145 - name : Export release project
146- if : github.event_name == 'workflow_dispatch '
146+ if : env.BUILD_TYPE == 'release '
147147 env :
148148 GODOT_ANDROID_KEYSTORE_RELEASE_PATH : " /tmp/release.keystore"
149149 GODOT_ANDROID_KEYSTORE_RELEASE_USER : ${{ secrets.KEY_ALIAS }}
0 commit comments