GH: Add linux mono builds
This commit is contained in:
parent
a61e8ee7bc
commit
a4602d302c
|
@ -28,37 +28,37 @@ jobs:
|
||||||
target: editor
|
target: editor
|
||||||
production: yes
|
production: yes
|
||||||
build-mono: false
|
build-mono: false
|
||||||
executable-file: godot.linuxbsd.editor.x86_64
|
bin: godot.linuxbsd.editor.x86_64
|
||||||
|
|
||||||
- name: Template release
|
- name: Template release
|
||||||
target: template_release
|
target: template_release
|
||||||
production: yes
|
production: yes
|
||||||
build-mono: false
|
build-mono: false
|
||||||
executable-file: godot.linuxbsd.template_release.x86_64
|
bin: godot.linuxbsd.template_release.x86_64
|
||||||
|
|
||||||
- name: Template debug
|
- name: Template debug
|
||||||
target: template_debug
|
target: template_debug
|
||||||
production: yes
|
production: yes
|
||||||
build-mono: false
|
build-mono: false
|
||||||
executable-file: godot.linuxbsd.template_debug.x86_64
|
bin: godot.linuxbsd.template_debug.x86_64
|
||||||
|
|
||||||
# - name: Editor w/ Mono
|
- name: Editor w/ Mono
|
||||||
# target: editor
|
target: editor
|
||||||
# production: yes
|
production: yes
|
||||||
# build-mono: true
|
build-mono: true
|
||||||
# executable-file: ???
|
bin: godot.linuxbsd.editor.x86_64.mono
|
||||||
|
|
||||||
# - name: Template release w/ Mono
|
- name: Template release w/ Mono
|
||||||
# target: template_release
|
target: template_release
|
||||||
# production: yes
|
production: yes
|
||||||
# build-mono: true
|
build-mono: true
|
||||||
# executable-file: ???
|
bin: godot.linuxbsd.template_release.x86_64.mono
|
||||||
|
|
||||||
# - name: Template debug w/ Mono
|
- name: Template debug w/ Mono
|
||||||
# target: template_debug
|
target: template_debug
|
||||||
# production: yes
|
production: yes
|
||||||
# build-mono: true
|
build-mono: true
|
||||||
# executable-file: ???
|
bin: godot.linuxbsd.template_debug.x86_64.mono
|
||||||
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
@ -85,16 +85,26 @@ jobs:
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
# Build step
|
# Build step
|
||||||
- name: Build step
|
- name: Compilation
|
||||||
env:
|
env:
|
||||||
SCONS_CACHE: ${{github.workspace}}/.scons_cache/
|
SCONS_CACHE: ${{github.workspace}}/.scons_cache/
|
||||||
run: |
|
run: |
|
||||||
PATH=${GITHUB_WORKSPACE}/x86_64-godot-linux-gnu_sdk-buildroot/bin:$PATH
|
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
|
# Make build available
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ${{matrix.executable-file}}
|
name: ${{matrix.bin}}
|
||||||
path: bin/${{matrix.executable-file}}
|
path: bin/*
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,10 @@
|
||||||
name: 🔗 GHA
|
name: 🔗 GHA
|
||||||
on:
|
on:
|
||||||
# push:
|
|
||||||
# tags:
|
|
||||||
# - v0.**
|
|
||||||
|
|
||||||
# branches: [ github-workflows ]
|
|
||||||
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
push:
|
||||||
|
branches: [ github-workflows ]
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# android-build:
|
# android-build:
|
||||||
|
|
Loading…
Reference in New Issue