[godot] GH action

This commit is contained in:
Mario Zechner 2022-07-12 15:06:32 +02:00
parent 40c3770b2e
commit bb8a015e91

View File

@ -23,6 +23,8 @@ env:
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_EC2_METADATA_DISABLED: true
EM_VERSION: 3.1.10
GODOT_TAG: 3.4.4-stable
GODOT_VERSION: 3.4.4.stable
jobs:
@ -41,7 +43,7 @@ jobs:
run: |
mkdir -p spine-godot/godot/bin/
touch spine-godot/godot/bin/godot.windows.opt.tools.64.exe
# ./spine-godot/build/setup.sh 3.4.4-stable false
# ./spine-godot/build/setup.sh $GODOT_TAG false
# ./spine-godot/build/build.sh release_debug
- name: Upload artifacts
@ -65,7 +67,7 @@ jobs:
run: |
mkdir -p spine-godot/godot/bin/
touch spine-godot/godot/bin/godot.x11.opt.tools.64
# ./spine-godot/build/setup.sh 3.4.4-stable false
# ./spine-godot/build/setup.sh $GODOT_TAG false
# ./spine-godot/build/build.sh release_debug
- name: Upload artifacts
@ -92,7 +94,7 @@ jobs:
pushd spine-godot/godot/bin
zip -r godot-editor-macos.zip Godot.app
popd
# ./spine-godot/build/setup.sh 3.4.4-stable false
# ./spine-godot/build/setup.sh $GODOT_TAG false
# ./spine-godot/build/build.sh release_debug
- name: Upload artifacts
@ -115,7 +117,7 @@ jobs:
run: |
mkdir -p spine-godot/godot/bin/
touch spine-godot/godot/bin/iphone.zip
# ./spine-godot/build/setup.sh 3.4.4-stable false
# ./spine-godot/build/setup.sh $GODOT_TAG false
# ./spine-godot/build/build-templates.sh ios
- name: Upload artifacts
@ -138,7 +140,7 @@ jobs:
run: |
mkdir -p spine-godot/godot/bin/
touch spine-godot/godot/bin/osx.zip
# ./spine-godot/build/setup.sh 3.4.4-stable false
# ./spine-godot/build/setup.sh $GODOT_TAG false
# ./spine-godot/build/build-templates.sh macos
- name: Upload artifacts
@ -163,7 +165,7 @@ jobs:
touch spine-godot/godot/bin/linux_x11_64_debug
touch spine-godot/godot/bin/linux_x11_64_release
# sudo apt-get install build-essential scons pkg-config libx11-dev libxcursor-dev libxinerama-dev libgl1-mesa-dev libglu-dev libasound2-dev libpulse-dev libudev-dev libxi-dev libxrandr-dev
# ./spine-godot/build/setup.sh 3.4.4-stable false
# ./spine-godot/build/setup.sh $GODOT_TAG false
# ./spine-godot/build/build-templates.sh linux
- name: Upload artifacts debug
@ -194,7 +196,7 @@ jobs:
mkdir -p spine-godot/godot/bin/
touch spine-godot/godot/bin/windows_64_debug.exe
touch spine-godot/godot/bin/windows_64_release.exe
# ./spine-godot/build/setup.sh 3.4.4-stable false
# ./spine-godot/build/setup.sh $GODOT_TAG false
# ./spine-godot/build/build-templates.sh windows
- name: Upload artifacts debug
@ -238,7 +240,7 @@ jobs:
touch spine-godot/godot/bin/android_release.apk
touch spine-godot/godot/bin/android_debug.apk
touch spine-godot/godot/bin/android_source.zip
# ./spine-godot/build/setup.sh 3.4.4-stable false
# ./spine-godot/build/setup.sh $GODOT_TAG false
# ./spine-godot/build/build-templates.sh android
- name: Upload artifacts debug
@ -283,7 +285,7 @@ jobs:
mkdir -p spine-godot/godot/bin/
touch spine-godot/godot/bin/webassembly_debug.zip
touch spine-godot/godot/bin/webassembly_release.zip
# ./spine-godot/build/setup.sh 3.4.4-stable false
# ./spine-godot/build/setup.sh $GODOT_TAG false
# ./spine-godot/build/build-templates.sh web
- name: Upload artifacts debug
@ -382,7 +384,11 @@ jobs:
run: |
BRANCH=${GITHUB_REF#refs/heads/}
echo "branch: $BRANCH"
aws s3 cp godot.windows.opt.tools.64.exe s3://spine-godot/spine-godot/$BRANCH/3.4.4-stable/
aws s3 cp godot.x11.opt.tools.64 s3://spine-godot/spine-godot/$BRANCH/3.4.4-stable/
aws s3 cp godot-editor-macos.zip s3://spine-godot/spine-godot/$BRANCH/3.4.4-stable/
aws s3 cp godot.windows.opt.tools.64.exe s3://spine-godot/$BRANCH/$GODOT_TAG/
aws s3 cp godot.x11.opt.tools.64 s3://spine-godot/$BRANCH/$GODOT_TAG/
aws s3 cp godot-editor-macos.zip s3://spine-godot/$BRANCH/$GODOT_TAG/
echo "$GODOT_VERSION" > version.txt
zip spine-godot-$BRANCH-$GODOT_TAG.zip iphone.zip osx.zip windows_64_debug.exe windows_64_release.exe linux_x11_64_debug linux_x11_64_release webassembly_debug.zip webassembly_release.zip android_release.apk android_debug.apk android_source.zip
aws s3 cp spine-godot-$BRANCH-$GODOT_TAG.zip s3://spine-godot/$BRANCH/$GODOT_TAG/