GHA: Add action to build .NET assemblies
This commit is contained in:
parent
338c9c8ccb
commit
bd0dcb3184
|
@ -0,0 +1,30 @@
|
|||
name: Build .NET assemblies
|
||||
|
||||
inputs:
|
||||
platform:
|
||||
required: true
|
||||
type: choice
|
||||
options:
|
||||
- linuxbsd
|
||||
- windows
|
||||
- macos
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Override GODOT_VERSION_STATUS for NuGet packages
|
||||
shell: bash
|
||||
run: |
|
||||
GODOT_VERSION_STATUS=$(echo "${GODOT_VERSION_STATUS}" | sed "s|+|-|").gha
|
||||
echo "GODOT_VERSION_STATUS=${GODOT_VERSION_STATUS}" >> "$GITHUB_ENV"
|
||||
echo "GODOT_VERSION_STATUS: ${GODOT_VERSION_STATUS}"
|
||||
|
||||
- name: Generate C# glue
|
||||
shell: bash
|
||||
run: |
|
||||
./bin/${BIN} --headless --generate-mono-glue ./modules/mono/glue || true
|
||||
|
||||
- name: Build .NET assemblies
|
||||
shell: bash
|
||||
run: |
|
||||
./modules/mono/build_scripts/build_assemblies.py --godot-output-dir=./bin --godot-platform=${{ inputs.platform }}
|
|
@ -243,19 +243,11 @@ jobs:
|
|||
PATH=${GITHUB_WORKSPACE}/buildroot/bin:$PATH
|
||||
scons platform=linuxbsd target=${{matrix.opts.target}} arch=${{matrix.opts.arch}} module_mono_enabled=${{matrix.opts.dotnet}} ${{env.SCONSFLAGS}}
|
||||
|
||||
- name: Generate C# glue
|
||||
- name: Build .NET assemblies
|
||||
if: matrix.opts.dotnet && matrix.opts.target == 'editor'
|
||||
run: |
|
||||
GODOT_VERSION_STATUS=$(echo "${GODOT_VERSION_STATUS}" | sed "s|+|-|")
|
||||
echo "GODOT_VERSION_STATUS: ${GODOT_VERSION_STATUS}"
|
||||
./bin/$BIN --headless --generate-mono-glue ./modules/mono/glue || true
|
||||
|
||||
- name: Build .NET solutions
|
||||
if: matrix.opts.dotnet && matrix.opts.target == 'editor'
|
||||
run: |
|
||||
GODOT_VERSION_STATUS=$(echo "${GODOT_VERSION_STATUS}" | sed "s|+|-|")
|
||||
echo "GODOT_VERSION_STATUS: ${GODOT_VERSION_STATUS}"
|
||||
./modules/mono/build_scripts/build_assemblies.py --godot-output-dir=./bin --godot-platform=linuxbsd
|
||||
uses: ./modules/limboai/.github/actions/build-dotnet-assemblies
|
||||
with:
|
||||
platform: linuxbsd
|
||||
|
||||
- name: Prepare artifact
|
||||
env:
|
||||
|
|
|
@ -183,19 +183,11 @@ jobs:
|
|||
run: |
|
||||
scons -j2 platform=macos target=${{matrix.opts.target}} arch=${{matrix.opts.arch}} module_mono_enabled=${{matrix.opts.dotnet}} ${{env.SCONSFLAGS}}
|
||||
|
||||
- name: Generate C# glue
|
||||
if: matrix.opts.dotnet && matrix.opts.target == 'editor' && matrix.opts.arch == 'x86_64'
|
||||
run: |
|
||||
GODOT_VERSION_STATUS=$(echo "${GODOT_VERSION_STATUS}" | sed "s|+|-|")
|
||||
echo "GODOT_VERSION_STATUS: ${GODOT_VERSION_STATUS}"
|
||||
./bin/$BIN --headless --generate-mono-glue ./modules/mono/glue || true
|
||||
|
||||
- name: Build .NET solutions
|
||||
if: matrix.opts.dotnet && matrix.opts.target == 'editor' && matrix.opts.arch == 'x86_64'
|
||||
run: |
|
||||
GODOT_VERSION_STATUS=$(echo "${GODOT_VERSION_STATUS}" | sed "s|+|-|")
|
||||
echo "GODOT_VERSION_STATUS: ${GODOT_VERSION_STATUS}"
|
||||
./modules/mono/build_scripts/build_assemblies.py --godot-output-dir=./bin --godot-platform=macos
|
||||
- name: Build .NET assemblies
|
||||
if: matrix.opts.dotnet && matrix.opts.target == 'editor'
|
||||
uses: ./modules/limboai/.github/actions/build-dotnet-assemblies
|
||||
with:
|
||||
platform: macos
|
||||
|
||||
- name: Prepare artifact
|
||||
run: |
|
||||
|
|
|
@ -220,21 +220,11 @@ jobs:
|
|||
run: |
|
||||
scons -j2 platform=windows target=${{matrix.opts.target}} arch=${{matrix.opts.arch}} module_mono_enabled=${{matrix.opts.dotnet}} ${{env.SCONSFLAGS}}
|
||||
|
||||
- name: Generate C# glue
|
||||
- name: Build .NET assemblies
|
||||
if: matrix.opts.dotnet && matrix.opts.target == 'editor'
|
||||
shell: bash
|
||||
run: |
|
||||
GODOT_VERSION_STATUS=$(echo "${GODOT_VERSION_STATUS}" | sed "s|+|-|")
|
||||
echo "GODOT_VERSION_STATUS: ${GODOT_VERSION_STATUS}"
|
||||
./bin/${{ env.BIN }} --headless --generate-mono-glue ./modules/mono/glue || true
|
||||
|
||||
- name: Build .NET solutions
|
||||
if: matrix.opts.dotnet && matrix.opts.target == 'editor'
|
||||
shell: bash
|
||||
run: |
|
||||
GODOT_VERSION_STATUS=$(echo "${GODOT_VERSION_STATUS}" | sed "s|+|-|")
|
||||
echo "GODOT_VERSION_STATUS: ${GODOT_VERSION_STATUS}"
|
||||
python ./modules/mono/build_scripts/build_assemblies.py --godot-output-dir=./bin --godot-platform=windows
|
||||
uses: ./modules/limboai/.github/actions/build-dotnet-assemblies
|
||||
with:
|
||||
platform: windows
|
||||
|
||||
- name: Prepare artifact
|
||||
shell: bash
|
||||
|
|
Loading…
Reference in New Issue