From 925a789d5fcea5aa7df1bb24484e4a592c1f20c8 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 10 Sep 2026 23:15:32 +0000 Subject: [PATCH] Migrate build workflow from windows-latest to ubuntu-latest Updates the Build job's RunsOn in ScriptGenerationService.cs to BuildMachines.UbuntuLatest and regenerates .github/workflows/build.yml from the Infrastructure project. Also removes the now-unnecessary Windows-only "Enable long paths for Git" step. Test steps already declared Shell = "pwsh" explicitly, so they continue to run correctly on ubuntu-latest (pwsh is preinstalled there). Verified no database dependency (no UseSqlServer/UseNpgsql/DbContext/ dotnet ef/ConnectionStrings usage in project code), no .esproj projects, and no ProjectReference casing mismatches. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_013qa2PSvtyXPgZbxPyD8Uro --- .github/workflows/build.yml | 4 +--- .../Services/ScriptGenerationService.cs | 8 +------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 49e7bf2..6c64412 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,10 +12,8 @@ on: jobs: build: name: Build - runs-on: windows-latest + runs-on: ubuntu-latest steps: - - name: Enable long paths for Git - run: git config --system core.longpaths true - name: Check out uses: actions/checkout@v5 - name: Setup .Net diff --git a/NHSDigital.ApiPlatform.Infrastructure/Services/ScriptGenerationService.cs b/NHSDigital.ApiPlatform.Infrastructure/Services/ScriptGenerationService.cs index 7beab6a..6d9ba1d 100644 --- a/NHSDigital.ApiPlatform.Infrastructure/Services/ScriptGenerationService.cs +++ b/NHSDigital.ApiPlatform.Infrastructure/Services/ScriptGenerationService.cs @@ -41,16 +41,10 @@ public void GenerateBuildScript(string branchName, string projectName, string do new Job { Name = "Build", - RunsOn = BuildMachines.WindowsLatest, + RunsOn = BuildMachines.UbuntuLatest, Steps = new List { - new GithubTask - { - Name = "Enable long paths for Git", - Run = "git config --system core.longpaths true" - }, - new CheckoutTaskV5 { Name = "Check out"