Compare commits

...

2 Commits

Author SHA1 Message Date
Serhii Snitsaruk 9c8d782fb2
GHA: Build Android .NET templates 2024-08-20 22:13:07 +02:00
Serhii Snitsaruk d709389c87
GHA: Build iOS .NET templates 2024-08-20 17:34:10 +02:00
2 changed files with 115 additions and 17 deletions

View File

@ -37,6 +37,8 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
include: include:
# * Standard arm64
- name: Template (arm64, debug) - name: Template (arm64, debug)
arch: arm64 arch: arm64
target: template_debug target: template_debug
@ -47,6 +49,8 @@ jobs:
target: template_release target: template_release
dotnet: false dotnet: false
# * Standard arm32
- name: Template (arm32, debug) - name: Template (arm32, debug)
arch: arm32 arch: arm32
target: template_debug target: template_debug
@ -57,6 +61,8 @@ jobs:
target: template_release target: template_release
dotnet: false dotnet: false
# * Standard x86_64
- name: Template (x86_64, debug) - name: Template (x86_64, debug)
arch: x86_64 arch: x86_64
target: template_debug target: template_debug
@ -67,6 +73,8 @@ jobs:
target: template_release target: template_release
dotnet: false dotnet: false
# * Standard x86_32
- name: Template (x86_32, debug) - name: Template (x86_32, debug)
arch: x86_32 arch: x86_32
target: template_debug target: template_debug
@ -77,8 +85,56 @@ jobs:
target: template_release target: template_release
dotnet: false dotnet: false
# * .NET arm64
- name: Template .NET (arm64, debug)
arch: arm64
target: template_debug
dotnet: true
- name: Template .NET (arm64, release)
arch: arm64
target: template_release
dotnet: true
# * .NET arm32
- name: Template .NET (arm32, debug)
arch: arm32
target: template_debug
dotnet: true
- name: Template .NET (arm32, release)
arch: arm32
target: template_release
dotnet: true
# * .NET x86_64
- name: Template .NET (x86_64, debug)
arch: x86_64
target: template_debug
dotnet: true
- name: Template .NET (x86_64, release)
arch: x86_64
target: template_release
dotnet: true
# * .NET x86_32
- name: Template .NET (x86_32, debug)
arch: x86_32
target: template_debug
dotnet: true
- name: Template .NET (x86_32, release)
arch: x86_32
target: template_release
dotnet: true
env: env:
BIN: godot.linuxbsd.${{matrix.target}}.${{matrix.arch}} #${{ matrix.build-mono == true && '.mono' || '' }} BIN: godot.linuxbsd.${{matrix.target}}.${{matrix.arch}}${{ matrix.dotnet == true && '.mono' || '' }}
steps: steps:
- name: Clone Godot - name: Clone Godot
@ -123,19 +179,28 @@ jobs:
env: env:
SCONS_CACHE: ${{github.workspace}}/.scons_cache/ SCONS_CACHE: ${{github.workspace}}/.scons_cache/
run: | run: |
scons platform=android target=${{matrix.target}} arch=${{matrix.arch}} ${{env.SCONSFLAGS}} scons platform=android target=${{matrix.target}} arch=${{matrix.arch}} module_mono_enabled=${{matrix.dotnet}} ${{env.SCONSFLAGS}}
ls platform/android/java/lib/libs/* ls platform/android/java/lib/libs/*
- name: Upload artifact - name: Upload artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: tmp-android-templates-${{strategy.job-index}} name: tmp-android${{matrix.dotnet == true && '-dotnet' || ''}}-templates-${{strategy.job-index}}
path: platform/android/java/lib/libs/* path: platform/android/java/lib/libs/*
make-android-package: make-android-package:
runs-on: "ubuntu-20.04" runs-on: "ubuntu-20.04"
name: Make Android package
needs: android-builds needs: android-builds
name: ${{ matrix.name }}
strategy:
fail-fast: false
matrix:
include:
- name: Package Android templates
dotnet: false
- name: Package Android .NET templates
dotnet: true
steps: steps:
- name: Clone Godot - name: Clone Godot
@ -156,7 +221,7 @@ jobs:
- name: Download Android template builds - name: Download Android template builds
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
pattern: tmp-android-templates-* pattern: tmp-android${{matrix.dotnet == true && '-dotnet' || ''}}-templates-*
merge-multiple: true merge-multiple: true
path: platform/android/java/lib/libs/ path: platform/android/java/lib/libs/
@ -194,18 +259,18 @@ jobs:
- name: Delete Android template builds - name: Delete Android template builds
uses: geekyeggo/delete-artifact@v5 uses: geekyeggo/delete-artifact@v5
with: with:
name: tmp-android-templates-* name: tmp-android${{matrix.dotnet == true && '-dotnet' || ''}}-templates-*
useGlob: true useGlob: true
failOnError: false failOnError: false
- name: Upload Android libs - name: Upload Android libs
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: ${{env.NAME_PREFIX}}.android-lib name: ${{env.NAME_PREFIX}}${{matrix.dotnet == true && '.dotnet' || ''}}.android-lib
path: bin/godot-lib.* path: bin/godot-lib.*
- name: Upload Android templates - name: Upload Android templates
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: ${{env.NAME_PREFIX}}.export-templates.android name: ${{env.NAME_PREFIX}}${{matrix.dotnet == true && '.dotnet' || ''}}.export-templates.android
path: out/* path: out/*

View File

@ -50,13 +50,13 @@ jobs:
ios_simulator: false ios_simulator: false
dotnet: false dotnet: false
- name: Simulator Lib (x86_64, release) - name: Simulator (x86_64, release)
target: template_release target: template_release
arch: x86_64 arch: x86_64
ios_simulator: true ios_simulator: true
dotnet: false dotnet: false
- name: Simulator Lib (x86_64, debug) - name: Simulator (x86_64, debug)
target: template_debug target: template_debug
arch: x86_64 arch: x86_64
ios_simulator: true ios_simulator: true
@ -74,8 +74,32 @@ jobs:
# arch: arm64 # arch: arm64
# ios_simulator: true # ios_simulator: true
- name: Template .NET (arm64, release)
target: template_release
arch: arm64
ios_simulator: false
dotnet: true
- name: Template .NET (arm64, debug)
target: template_debug
arch: arm64
ios_simulator: false
dotnet: true
- name: Simulator .NET (x86_64, release)
target: template_release
arch: x86_64
ios_simulator: true
dotnet: true
- name: Simulator .NET (x86_64, debug)
target: template_debug
arch: x86_64
ios_simulator: true
dotnet: true
env: env:
BIN: godot.ios.${{matrix.target}}.${{matrix.arch}} BIN: godot.ios.${{matrix.target}}.${{matrix.arch}}${{ matrix.dotnet == true && '.mono' || '' }}
steps: steps:
- name: Clone Godot - name: Clone Godot
@ -128,19 +152,28 @@ jobs:
env: env:
SCONS_CACHE: ${{github.workspace}}/.scons_cache/ SCONS_CACHE: ${{github.workspace}}/.scons_cache/
run: | run: |
scons platform=ios target=${{matrix.target}} arch=${{matrix.arch}} ios_simulator=${{matrix.ios_simulator}} ${{env.SCONSFLAGS}} scons platform=ios target=${{matrix.target}} arch=${{matrix.arch}} ios_simulator=${{matrix.ios_simulator}} module_mono_enabled=${{matrix.dotnet}} ${{env.SCONSFLAGS}}
- name: Upload artifact - name: Upload artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: tmp-ios-templates-${{strategy.job-index}} name: tmp-ios${{matrix.dotnet == true && '-dotnet' || ''}}-templates-${{strategy.job-index}}
path: bin/* path: bin/*
package-ios-templates: package-ios-templates:
runs-on: "macos-latest" runs-on: "macos-latest"
name: Package iOS templates name: ${{ matrix.name }}
needs: ios-builds needs: ios-builds
strategy:
fail-fast: false
matrix:
include:
- name: Package iOS templates
dotnet: false
- name: Package iOS .NET templates
dotnet: true
steps: steps:
- name: Clone Godot - name: Clone Godot
uses: actions/checkout@v4 uses: actions/checkout@v4
@ -164,7 +197,7 @@ jobs:
- name: Download templates artifact - name: Download templates artifact
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
pattern: tmp-ios-templates-* pattern: tmp-ios${{matrix.dotnet == true && '-dotnet' || ''}}-templates-*
merge-multiple: true merge-multiple: true
path: bin/ path: bin/
@ -196,12 +229,12 @@ jobs:
- name: Upload template bundle - name: Upload template bundle
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: ${{env.NAME_PREFIX}}.export-templates.ios name: ${{env.NAME_PREFIX}}${{matrix.dotnet == true && '.dotnet' || ''}}.export-templates.ios
path: out/* path: out/*
- name: Delete templates artifact - name: Delete templates artifact
uses: geekyeggo/delete-artifact@v5 uses: geekyeggo/delete-artifact@v5
with: with:
name: tmp-ios-templates-* name: tmp-ios${{matrix.dotnet == true && '-dotnet' || ''}}-templates-*
useGlob: true useGlob: true
failOnError: false failOnError: false