From 016f1d4a4f91f71551e9bf2e9e51972af7935712 Mon Sep 17 00:00:00 2001 From: Wei Li Date: Wed, 19 Aug 2026 17:27:14 +0100 Subject: [PATCH 1/3] workflow_dispatch --- .github/workflows/build-and-test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 0574549..15dd360 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -5,6 +5,7 @@ on: branches: [master] pull_request: branches: [master] + workflow_dispatch: jobs: build: From 989996cf54f1bd4e34d7d71f0d17831980b8aecc Mon Sep 17 00:00:00 2001 From: Wei Li Date: Thu, 20 Aug 2026 09:45:52 +0100 Subject: [PATCH 2/3] update Microsoft.CodeAnalysis.CSharp --- projects/csharp/SqlRace.Examples.sln | 24 ++++++++++++++++++- .../SqlRace.Examples.Tests.csproj | 2 +- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/projects/csharp/SqlRace.Examples.sln b/projects/csharp/SqlRace.Examples.sln index 5c252e5..8a7963d 100644 --- a/projects/csharp/SqlRace.Examples.sln +++ b/projects/csharp/SqlRace.Examples.sln @@ -1,4 +1,3 @@ - Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.0.31903.59 @@ -19,6 +18,16 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FunctionLibrary", "Function EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SessionCropper", "SessionCropper\SessionCropper.csproj", "{B8C9D0E1-F2A3-4567-BCDA-678901234567}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{02EA681E-C7D8-13C7-8484-4AC65E1B71E8}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build", "Build", "{47352BB4-4B37-4719-8FE2-6F98EADFF975}" + ProjectSection(SolutionItems) = preProject + ..\..\.github\workflows\build-and-test.yml = ..\..\.github\workflows\build-and-test.yml + ..\..\.github\workflows\validate-notebooks.yml = ..\..\.github\workflows\validate-notebooks.yml + EndProjectSection +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SqlRace.Examples.Tests", "..\..\tests\SqlRace.Examples.Tests\SqlRace.Examples.Tests.csproj", "{B0C9821E-0AF8-F079-0168-06AA9E6B2A51}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -57,5 +66,18 @@ Global {B8C9D0E1-F2A3-4567-BCDA-678901234567}.Debug|Any CPU.Build.0 = Debug|Any CPU {B8C9D0E1-F2A3-4567-BCDA-678901234567}.Release|Any CPU.ActiveCfg = Release|Any CPU {B8C9D0E1-F2A3-4567-BCDA-678901234567}.Release|Any CPU.Build.0 = Release|Any CPU + {B0C9821E-0AF8-F079-0168-06AA9E6B2A51}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B0C9821E-0AF8-F079-0168-06AA9E6B2A51}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B0C9821E-0AF8-F079-0168-06AA9E6B2A51}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B0C9821E-0AF8-F079-0168-06AA9E6B2A51}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(NestedProjects) = preSolution + {B0C9821E-0AF8-F079-0168-06AA9E6B2A51} = {02EA681E-C7D8-13C7-8484-4AC65E1B71E8} + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {ADB34FDF-185F-4A40-817B-CE01EBE81EF9} EndGlobalSection EndGlobal diff --git a/tests/SqlRace.Examples.Tests/SqlRace.Examples.Tests.csproj b/tests/SqlRace.Examples.Tests/SqlRace.Examples.Tests.csproj index 5d112ea..1a5c5cc 100644 --- a/tests/SqlRace.Examples.Tests/SqlRace.Examples.Tests.csproj +++ b/tests/SqlRace.Examples.Tests/SqlRace.Examples.Tests.csproj @@ -12,7 +12,7 @@ - + From be50e0a9209da5b5413926ad5e461cbdba96932a Mon Sep 17 00:00:00 2001 From: Wei Li Date: Thu, 20 Aug 2026 09:55:12 +0100 Subject: [PATCH 3/3] simply yml --- .github/workflows/build-and-test.yml | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 15dd360..06d1495 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -18,24 +18,15 @@ jobs: with: dotnet-version: 8.0.x - - name: Restore projects + - name: Restore solution run: dotnet restore projects/csharp/SqlRace.Examples.sln env: NUGET_AUTH_USERNAME: ${{ secrets.PACKAGES_USERNAME }} NUGET_AUTH_TOKEN: ${{ secrets.PACKAGES_PATTOKEN }} - - name: Build projects + - name: Build solution run: dotnet build projects/csharp/SqlRace.Examples.sln --no-restore --configuration Release - - name: Restore tests - run: dotnet restore tests/SqlRace.Examples.Tests/SqlRace.Examples.Tests.csproj - env: - NUGET_AUTH_USERNAME: ${{ secrets.PACKAGES_USERNAME }} - NUGET_AUTH_TOKEN: ${{ secrets.PACKAGES_PATTOKEN }} - - - name: Build tests - run: dotnet build tests/SqlRace.Examples.Tests/SqlRace.Examples.Tests.csproj --no-restore --configuration Release - # NOTE: Tests are NOT executed in CI. Several tests initialise the SQL Race # runtime via SqlRaceBootstrapper, which requires a SQL Race licence that the # CI runner does not have (LicenceException). CI verifies compilation only;