From 4047e4b89442e3373b15718fc8f3e2f0def92e6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Tue, 17 Dec 2024 11:00:07 +0100 Subject: [PATCH] .NET: Downgrade Microsoft.CodeAnalysis.CSharp to 4.8.0 for compat with SDK 8.0.1xy And for CI, set up .NET SDK 8.0.100 explicitly to test our min supported version. --- .github/workflows/linux_builds.yml | 13 +++++++++++++ .../Godot.SourceGenerators.Internal.csproj | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linux_builds.yml b/.github/workflows/linux_builds.yml index 193942a1bb3a..6b786a7b5849 100644 --- a/.github/workflows/linux_builds.yml +++ b/.github/workflows/linux_builds.yml @@ -140,6 +140,18 @@ jobs: python-version: 3.8 scons-version: 4.0 + - name: Force remove preinstalled .NET SDKs + if: matrix.build-mono + run: | + sudo rm -rf /usr/share/dotnet/sdk/* + + - name: Setup older .NET SDK as baseline + if: matrix.build-mono + uses: actions/setup-dotnet@v4 + with: + # Targeting the oldest version we want to support to ensure it still builds. + dotnet-version: '8.0.100' + - name: Compilation uses: ./.github/actions/godot-build with: @@ -163,6 +175,7 @@ jobs: - name: Build .NET solutions if: matrix.build-mono run: | + dotnet --info ./modules/mono/build_scripts/build_assemblies.py --godot-output-dir=./bin --godot-platform=linuxbsd - name: Prepare artifact diff --git a/modules/mono/glue/GodotSharp/Godot.SourceGenerators.Internal/Godot.SourceGenerators.Internal.csproj b/modules/mono/glue/GodotSharp/Godot.SourceGenerators.Internal/Godot.SourceGenerators.Internal.csproj index ee607ff279e2..d291199ad04d 100644 --- a/modules/mono/glue/GodotSharp/Godot.SourceGenerators.Internal/Godot.SourceGenerators.Internal.csproj +++ b/modules/mono/glue/GodotSharp/Godot.SourceGenerators.Internal/Godot.SourceGenerators.Internal.csproj @@ -8,7 +8,7 @@ - +