GH: Add linux mono builds

This commit is contained in:
Serhii Snitsaruk 2023-07-28 18:51:56 +02:00
parent a61e8ee7bc
commit a4602d302c
2 changed files with 35 additions and 28 deletions

View File

@ -28,37 +28,37 @@ jobs:
target: editor
production: yes
build-mono: false
executable-file: godot.linuxbsd.editor.x86_64
bin: godot.linuxbsd.editor.x86_64
- name: Template release
target: template_release
production: yes
build-mono: false
executable-file: godot.linuxbsd.template_release.x86_64
bin: godot.linuxbsd.template_release.x86_64
- name: Template debug
target: template_debug
production: yes
build-mono: false
executable-file: godot.linuxbsd.template_debug.x86_64
bin: godot.linuxbsd.template_debug.x86_64
# - name: Editor w/ Mono
# target: editor
# production: yes
# build-mono: true
# executable-file: ???
- name: Editor w/ Mono
target: editor
production: yes
build-mono: true
bin: godot.linuxbsd.editor.x86_64.mono
# - name: Template release w/ Mono
# target: template_release
# production: yes
# build-mono: true
# executable-file: ???
- name: Template release w/ Mono
target: template_release
production: yes
build-mono: true
bin: godot.linuxbsd.template_release.x86_64.mono
# - name: Template debug w/ Mono
# target: template_debug
# production: yes
# build-mono: true
# executable-file: ???
- name: Template debug w/ Mono
target: template_debug
production: yes
build-mono: true
bin: godot.linuxbsd.template_debug.x86_64.mono
steps:
@ -85,16 +85,26 @@ jobs:
cd ..
# Build step
- name: Build step
- name: Compilation
env:
SCONS_CACHE: ${{github.workspace}}/.scons_cache/
run: |
PATH=${GITHUB_WORKSPACE}/x86_64-godot-linux-gnu_sdk-buildroot/bin:$PATH
scons -j2 platform=linuxbsd tests=no target=${{matrix.target}} production=${{matrix.production}}
scons -j2 platform=linuxbsd tests=no target=${{matrix.target}} production=${{matrix.production}} module_mono_enabled=${{ matrix.build-mono }}
- name: Generate C# glue
if: ${{ matrix.build-mono }}
run: |
${{ matrix.bin }} --headless --generate-mono-glue ./modules/mono/glue || true
- name: Build .NET solutions
if: ${{ matrix.build-mono }}
run: |
./modules/mono/build_scripts/build_assemblies.py --godot-output-dir=./bin --godot-platform=linuxbsd
# Make build available
- uses: actions/upload-artifact@v3
with:
name: ${{matrix.executable-file}}
path: bin/${{matrix.executable-file}}
name: ${{matrix.bin}}
path: bin/*

View File

@ -1,13 +1,10 @@
name: 🔗 GHA
on:
# push:
# tags:
# - v0.**
# branches: [ github-workflows ]
workflow_dispatch:
push:
branches: [ github-workflows ]
jobs:
# android-build: