Skip to content

Commit

Permalink
[godot] Build additional web templates (nothreads, dlink), closes #2627
Browse files Browse the repository at this point in the history
  • Loading branch information
badlogic committed Sep 18, 2024
1 parent 22cc555 commit 66a9ce0
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 1 deletion.
68 changes: 67 additions & 1 deletion .github/workflows/spine-godot-v4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_EC2_METADATA_DISABLED: true
EM_VERSION: 3.1.18
EM_VERSION: 3.1.26
GODOT_TAG: ${{ inputs.godot_tag }}
GODOT_VERSION: ${{ inputs.godot_version }}
GODOT_MONO: ${{ inputs.godot_mono }}
Expand Down Expand Up @@ -302,6 +302,42 @@ jobs:
name: ${{ format('{0}-{1}{2}.zip', 'godot-template-web-release', env.GODOT_TAG, env.GODOT_MONO_UPLOAD_SUFFIX) }}
path: spine-godot/godot/bin/web_release.zip

- name: Upload artifacts no threads debug
uses: actions/upload-artifact@v3
with:
name: ${{ format('{0}-{1}{2}.zip', 'godot-template-web-nothreads-debug', env.GODOT_TAG, env.GODOT_MONO_UPLOAD_SUFFIX) }}
path: spine-godot/godot/bin/web_nothreads_debug.zip

- name: Upload artifacts no threads release
uses: actions/upload-artifact@v3
with:
name: ${{ format('{0}-{1}{2}.zip', 'godot-template-web-nothreads-release', env.GODOT_TAG, env.GODOT_MONO_UPLOAD_SUFFIX) }}
path: spine-godot/godot/bin/web_nothreads_release.zip

- name: Upload artifacts dlink debug
uses: actions/upload-artifact@v3
with:
name: ${{ format('{0}-{1}{2}.zip', 'godot-template-web-dlink-debug', env.GODOT_TAG, env.GODOT_MONO_UPLOAD_SUFFIX) }}
path: spine-godot/godot/bin/web_dlink_debug.zip

- name: Upload artifacts dlink release
uses: actions/upload-artifact@v3
with:
name: ${{ format('{0}-{1}{2}.zip', 'godot-template-web-dlink-release', env.GODOT_TAG, env.GODOT_MONO_UPLOAD_SUFFIX) }}
path: spine-godot/godot/bin/web_dlink_release.zip

- name: Upload artifacts dlink nothreads debug
uses: actions/upload-artifact@v3
with:
name: ${{ format('{0}-{1}{2}.zip', 'godot-template-web-dlink-nothreads-debug', env.GODOT_TAG, env.GODOT_MONO_UPLOAD_SUFFIX) }}
path: spine-godot/godot/bin/web_dlink_nothreads_debug.zip

- name: Upload artifacts dlink nothreads release
uses: actions/upload-artifact@v3
with:
name: ${{ format('{0}-{1}{2}.zip', 'godot-template-web-dlink-nothreads-release', env.GODOT_TAG, env.GODOT_MONO_UPLOAD_SUFFIX) }}
path: spine-godot/godot/bin/web_dlink_nothreads_release.zip

upload-to-s3:
needs: [godot-editor-windows, godot-editor-linux, godot-editor-macos, godot-template-ios, godot-template-macos, godot-template-windows, godot-template-linux, godot-template-android, godot-template-web]
runs-on: ubuntu-latest
Expand Down Expand Up @@ -378,6 +414,36 @@ jobs:
with:
name: ${{ format('{0}-{1}{2}.zip', 'godot-template-web-debug', env.GODOT_TAG, env.GODOT_MONO_UPLOAD_SUFFIX) }}

- name: Download godot-template-web-nothreads-release artifact
uses: actions/download-artifact@v2
with:
name: ${{ format('{0}-{1}{2}.zip', 'godot-template-web-nothreads-release', env.GODOT_TAG, env.GODOT_MONO_UPLOAD_SUFFIX) }}

- name: Download godot-template-web-nothreads-debug artifact
uses: actions/download-artifact@v2
with:
name: ${{ format('{0}-{1}{2}.zip', 'godot-template-web-nothreads-debug', env.GODOT_TAG, env.GODOT_MONO_UPLOAD_SUFFIX) }}

- name: Download godot-template-web-dlink-release artifact
uses: actions/download-artifact@v2
with:
name: ${{ format('{0}-{1}{2}.zip', 'godot-template-web-dlink-release', env.GODOT_TAG, env.GODOT_MONO_UPLOAD_SUFFIX) }}

- name: Download godot-template-web-dlink-debug artifact
uses: actions/download-artifact@v2
with:
name: ${{ format('{0}-{1}{2}.zip', 'godot-template-web-dlink-debug', env.GODOT_TAG, env.GODOT_MONO_UPLOAD_SUFFIX) }}

- name: Download godot-template-web-dlink-nothreads-release artifact
uses: actions/download-artifact@v2
with:
name: ${{ format('{0}-{1}{2}.zip', 'godot-template-web-dlink-nothreads-release', env.GODOT_TAG, env.GODOT_MONO_UPLOAD_SUFFIX) }}

- name: Download godot-template-web-dlink-nothreads-debug artifact
uses: actions/download-artifact@v2
with:
name: ${{ format('{0}-{1}{2}.zip', 'godot-template-web-dlink-nothreads-debug', env.GODOT_TAG, env.GODOT_MONO_UPLOAD_SUFFIX) }}

- name: Upload artifacts to S3
shell: bash
if: env.AWS_ACCESS_KEY_ID != null
Expand Down
12 changes: 12 additions & 0 deletions spine-godot/build/build-templates-v4.sh
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,18 @@ elif [ "$platform" = "web" ]; then
scons platform=web tools=no target=template_debug custom_modules="../spine_godot" --jobs=$cpus
mv bin/godot.web.template_release.wasm32.zip bin/web_release.zip
mv bin/godot.web.template_debug.wasm32.zip bin/web_debug.zip
scons platform=web tools=no threads=no target=template_release custom_modules="../spine_godot" --jobs=$cpus
scons platform=web tools=no threads=no target=template_debug custom_modules="../spine_godot" --jobs=$cpus
mv bin/godot.web.template_release.wasm32.zip bin/web_nothreads_release.zip
mv bin/godot.web.template_debug.wasm32.zip bin/web_nothreads_debug.zip
scons platform=web tools=no dlink_enabled=yes target=template_release custom_modules="../spine_godot" --jobs=$cpus
scons platform=web tools=no dlink_enabled=yes target=template_debug custom_modules="../spine_godot" --jobs=$cpus
mv bin/godot.web.template_release.wasm32.dlink.zip bin/web_dlink_release.zip
mv bin/godot.web.template_debug.wasm32.dlink.zip bin/web_dlink_debug.zip
scons platform=web tools=no threads=no dlink_enabled=yes target=template_release custom_modules="../spine_godot" --jobs=$cpus
scons platform=web tools=no threads=no dlink_enabled=yes target=template_debug custom_modules="../spine_godot" --jobs=$cpus
mv bin/godot.web.template_release.wasm32.dlink.zip bin/web_dlink_nothreads_release.zip
mv bin/godot.web.template_debug.wasm32.dlink.zip bin/web_dlink_nothreads_debug.zip
elif [ "$platform" = "android" ]; then
# --- ANROID ---
# generates android_release.apk, android_debug.apk, android_source.zip
Expand Down

0 comments on commit 66a9ce0

Please sign in to comment.