Skip to content

Commit

Permalink
Merge branch '4.2' into gdextension
Browse files Browse the repository at this point in the history
# Conflicts:
#	spine-godot/spine_godot/SpineAtlasResource.cpp
  • Loading branch information
badlogic committed Oct 7, 2024
2 parents 1101e71 + d4a3444 commit f8a0b5b
Show file tree
Hide file tree
Showing 282 changed files with 22,015 additions and 913 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/spine-android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build spine-android

on:
push:
paths:
- 'spine-android/**'
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: "17"

- name: Setup Android SDK
uses: android-actions/setup-android@v3
with:
api-level: 34
build-tools: 35.0.0

- name: Cache Gradle packages
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: ${{ runner.os }}-gradle

- name: Build spine-android
working-directory: spine-android
run: ./gradlew publishReleasePublicationToSonaType -PossrhUsername=${{ secrets.SONATYPE_USER }} -PossrhPassword=${{ secrets.SONATYPE_PASSWORD }}
4 changes: 2 additions & 2 deletions .github/workflows/spine-godot-v4-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
matrix:
version:
[
{"tag": "4.1.4-stable", "version": "4.1.4.stable", "mono": false},
{"tag": "4.1.4-stable", "version": "4.1.4.stable", "mono": true},
{"tag": "4.3-stable", "version": "4.3.stable", "mono": false},
{"tag": "4.3-stable", "version": "4.3.stable", "mono": true},
{"tag": "4.2.2-stable", "version": "4.2.2.stable", "mono": false},
{"tag": "4.2.2-stable", "version": "4.2.2.stable", "mono": true},
]
Expand Down
129 changes: 105 additions & 24 deletions .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,82 +302,148 @@ 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
if: ${{ inputs.godot_mono == false }}

steps:
- name: Download godot-editor-windows artifact
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: ${{ format('{0}-{1}{2}.zip', 'godot-editor-windows', env.GODOT_TAG, env.GODOT_MONO_UPLOAD_SUFFIX) }}

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

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

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

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

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

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

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

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

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

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

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

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

- name: Download godot-template-web-debug artifact
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
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@v4
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@v4
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@v4
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@v4
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@v4
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@v4
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 All @@ -391,9 +457,24 @@ jobs:
aws s3 cp godot-editor-windows.zip s3://spine-godot/$BRANCH/$GODOT_TAG/
aws s3 cp godot-editor-linux.zip s3://spine-godot/$BRANCH/$GODOT_TAG/
aws s3 cp godot-editor-macos.zip s3://spine-godot/$BRANCH/$GODOT_TAG/
echo "$GODOT_VERSION" > version.txt
# Extract the major and minor version from GODOT_VERSION
GODOT_MAJOR_MINOR=$(echo "$GODOT_VERSION" | sed -E 's/^([0-9]+\.[0-9]+).*/\1/')
# Check if the version is >= 4.3
if [[ $(echo "$GODOT_MAJOR_MINOR >= 4.3" | bc) -eq 1 ]]; then
mv web_release.zip web_nothreads_release.zip
mv web_debug.zip web_nothreads_debug.zip
WEB_RELEASE_FILE="web_nothreads_release.zip"
WEB_DEBUG_FILE="web_nothreads_debug.zip"
else
WEB_RELEASE_FILE="web_release.zip"
WEB_DEBUG_FILE="web_debug.zip"
fi
ls -lah
zip spine-godot-templates-$BRANCH-$GODOT_TAG.zip ios.zip macos.zip windows_debug_x86_64.exe windows_release_x86_64.exe linux_debug.x86_64 linux_release.x86_64 web_debug.zip web_release.zip android_release.apk android_debug.apk android_source.zip version.txt
zip spine-godot-templates-$BRANCH-$GODOT_TAG.zip ios.zip macos.zip windows_debug_x86_64.exe windows_release_x86_64.exe linux_debug.x86_64 linux_release.x86_64 "$WEB_DEBUG_FILE" "$WEB_RELEASE_FILE" android_release.apk android_debug.apk android_source.zip version.txt
aws s3 cp spine-godot-templates-$BRANCH-$GODOT_TAG.zip s3://spine-godot/$BRANCH/$GODOT_TAG/spine-godot-templates-$BRANCH-$GODOT_TAG.tpz
upload-to-s3-mono:
Expand All @@ -403,42 +484,42 @@ jobs:

steps:
- name: Download godot-editor-windows artifact
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: ${{ format('{0}-{1}{2}.zip', 'godot-editor-windows', env.GODOT_TAG, env.GODOT_MONO_UPLOAD_SUFFIX) }}

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

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

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

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

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

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

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

Expand Down
Loading

0 comments on commit f8a0b5b

Please sign in to comment.