Skip to content

Commit

Permalink
CI: Setup .NET Sdk to fix CI and build C# code as well
Browse files Browse the repository at this point in the history
  • Loading branch information
neikeq committed Jan 31, 2022
1 parent d9b93f5 commit 60efac8
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/linux_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on: [push, pull_request]
env:
GODOT_BASE_BRANCH: master
SCONSFLAGS: verbose=yes warnings=extra werror=yes module_text_server_fb_enabled=yes
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: false

concurrency:
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-linux
Expand Down Expand Up @@ -83,6 +85,11 @@ jobs:
- name: Setup python and scons
uses: ./.github/actions/godot-deps

- name: Set up .NET Sdk
uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.x'

- name: Compilation
uses: ./.github/actions/godot-build
with:
Expand All @@ -92,10 +99,15 @@ jobs:
tools: ${{ matrix.tools }}
tests: ${{ matrix.tests }}

- name: Generate Mono glue
- 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: |
${{ matrix.bin }} --headless --generate-mono-glue modules/mono/glue || true
./modules/mono/build_scripts/build_assemblies.py --godot-output-dir=./bin --godot-target=${{ matrix.target }} --godot-platform=linuxbsd
# Rebuild with mono
- name: Compilation (mono_glue=yes)
Expand Down

0 comments on commit 60efac8

Please sign in to comment.