From 8cac702e11b178979e7c99124e3758065de461be Mon Sep 17 00:00:00 2001 From: Philippe Matray Date: Thu, 26 Feb 2026 23:57:12 +0100 Subject: [PATCH] fix: update NUKE build tool to match .NET SDK version Add setup-dotnet step to CI workflow to install .NET 10 SDK, which is required by both the NUKE build project (targeting net10.0) and the application projects. Without this step, the CI runner uses its default SDK which may not include .NET 10. Also disable NUKE auto-generation of the workflow file to prevent the setup-dotnet step from being overwritten. Fixes #80 --- .github/workflows/continuous.yml | 20 ++++---------------- build/Build.cs | 1 + 2 files changed, 5 insertions(+), 16 deletions(-) diff --git a/.github/workflows/continuous.yml b/.github/workflows/continuous.yml index 982b288..5dd64b6 100644 --- a/.github/workflows/continuous.yml +++ b/.github/workflows/continuous.yml @@ -1,19 +1,3 @@ -# ------------------------------------------------------------------------------ -# -# -# This code was generated. -# -# - To turn off auto-generation set: -# -# [GitHubActions (AutoGenerate = false)] -# -# - To trigger manual generation invoke: -# -# nuke --generate-configuration GitHubActions_continuous --host GitHubActions -# -# -# ------------------------------------------------------------------------------ - name: continuous on: @@ -40,6 +24,10 @@ jobs: - uses: actions/checkout@v6 with: fetch-depth: 0 + - name: 'Setup: .NET SDK' + uses: actions/setup-dotnet@v5 + with: + dotnet-version: '10.0.x' - name: 'Cache: .nuke/temp, ~/.nuget/packages' uses: actions/cache@v5 with: diff --git a/build/Build.cs b/build/Build.cs index bb6bd9b..b4889d3 100644 --- a/build/Build.cs +++ b/build/Build.cs @@ -20,6 +20,7 @@ [GitHubActions( "continuous", GitHubActionsImage.UbuntuLatest, + AutoGenerate = false, OnPushBranches = ["main", "develop"], OnPushTags = ["v*"], OnPullRequestBranches = ["main", "develop"],