mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[godot] GH action
This commit is contained in:
parent
bfa4e803bc
commit
16cc81a6a3
139
.github/workflows/spine-godot.yml
vendored
139
.github/workflows/spine-godot.yml
vendored
@ -90,6 +90,115 @@ jobs:
|
|||||||
name: godot-editor-macos.zip
|
name: godot-editor-macos.zip
|
||||||
path: spine-godot/godot/bin/godot-editor-macos.zip
|
path: spine-godot/godot/bin/godot-editor-macos.zip
|
||||||
|
|
||||||
|
godot-template-ios:
|
||||||
|
runs-on: macos-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Setup python and scons
|
||||||
|
uses: ./.github/actions/setup-godot-deps
|
||||||
|
|
||||||
|
- name: Build Godot artifact
|
||||||
|
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/build-templates.sh ios
|
||||||
|
|
||||||
|
- name: Upload artifacts
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: godot-template-ios.zip
|
||||||
|
path: spine-godot/godot/bin/iphone.zip
|
||||||
|
|
||||||
|
|
||||||
|
godot-template-macos:
|
||||||
|
runs-on: macos-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Setup python and scons
|
||||||
|
uses: ./.github/actions/setup-godot-deps
|
||||||
|
|
||||||
|
- name: Build Godot artifact
|
||||||
|
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/build-templates.sh macos
|
||||||
|
|
||||||
|
- name: Upload artifacts
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: godot-template-macos.zip
|
||||||
|
path: spine-godot/godot/bin/osx.zip
|
||||||
|
|
||||||
|
godot-template-linux:
|
||||||
|
runs-on: ubuntu-18.04
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Setup python and scons
|
||||||
|
uses: ./.github/actions/setup-godot-deps
|
||||||
|
|
||||||
|
- name: Build Godot artifact
|
||||||
|
run: |
|
||||||
|
mkdir -p spine-godot/godot/bin/
|
||||||
|
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/build-templates.sh linux
|
||||||
|
|
||||||
|
- name: Upload artifacts debug
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: godot-template-linux-debug.zip
|
||||||
|
path: spine-godot/godot/bin/linux_x11_64_debug
|
||||||
|
|
||||||
|
- name: Upload artifacts release
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: godot-template-linux-release.zip
|
||||||
|
path: spine-godot/godot/bin/linux_x11_64_release
|
||||||
|
|
||||||
|
godot-template-windows:
|
||||||
|
runs-on: windows-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Setup python and scons
|
||||||
|
uses: ./.github/actions/setup-godot-deps
|
||||||
|
|
||||||
|
- name: Build Godot artifact
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
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/build-templates.sh windows
|
||||||
|
|
||||||
|
- name: Upload artifacts debug
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: godot-template-windows-debug.zip
|
||||||
|
path: spine-godot/godot/bin/windows_64_debug.exe
|
||||||
|
|
||||||
|
- name: Upload artifacts release
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: godot-template-windows-release.zip
|
||||||
|
path: spine-godot/godot/bin/windows_64_release.exe
|
||||||
|
|
||||||
upload-to-s3:
|
upload-to-s3:
|
||||||
needs: [godot-editor-windows, godot-editor-linux, godot-editor-macos]
|
needs: [godot-editor-windows, godot-editor-linux, godot-editor-macos]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -109,6 +218,36 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: godot-editor-macos.zip
|
name: godot-editor-macos.zip
|
||||||
|
|
||||||
|
- name: Download godot-template-ios artifact
|
||||||
|
uses: actions/download-artifact@v2
|
||||||
|
with:
|
||||||
|
name: godot-template-ios.zip
|
||||||
|
|
||||||
|
- name: Download godot-template-macos artifact
|
||||||
|
uses: actions/download-artifact@v2
|
||||||
|
with:
|
||||||
|
name: godot-template-macos.zip
|
||||||
|
|
||||||
|
- name: Download godot-template-windows-release artifact
|
||||||
|
uses: actions/download-artifact@v2
|
||||||
|
with:
|
||||||
|
name: godot-template-windows-release.zip
|
||||||
|
|
||||||
|
- name: Download godot-template-windows-debug artifact
|
||||||
|
uses: actions/download-artifact@v2
|
||||||
|
with:
|
||||||
|
name: godot-template-windows-debug.zip
|
||||||
|
|
||||||
|
- name: Download godot-template-linux-release artifact
|
||||||
|
uses: actions/download-artifact@v2
|
||||||
|
with:
|
||||||
|
name: godot-template-linux-release.zip
|
||||||
|
|
||||||
|
- name: Download godot-template-linux-debug artifact
|
||||||
|
uses: actions/download-artifact@v2
|
||||||
|
with:
|
||||||
|
name: godot-template-linux-debug.zip
|
||||||
|
|
||||||
- name: Unpack editors and templates
|
- name: Unpack editors and templates
|
||||||
run: |
|
run: |
|
||||||
ls -lah
|
ls -lah
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user