From a19aee95d5f58978f13432f30e6a136e471645c6 Mon Sep 17 00:00:00 2001 From: Andrii Kurdiumov Date: Sat, 16 May 2026 13:51:00 +0200 Subject: [PATCH 1/2] Add CI build --- .github/workflows/build.yml | 42 +++++++++++ Antigen.sln | 97 +++++++++++++------------- Antigen/Antigen.csproj | 5 +- ExecutionEngine/ExecutionEngine.csproj | 2 +- Trimmer/Trimmer.csproj | 2 +- Utilities/Utilities.csproj | 2 +- 6 files changed, 95 insertions(+), 55 deletions(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..66e9c94 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,42 @@ +name: Build Antigen + +on: + push: + branches: + - main + pull_request: + branches: + - main + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: read #This is required for actions/checkout + + steps: + - uses: actions/checkout@v4 + + - name: Set up .NET Core + uses: actions/setup-dotnet@v4 + with: + dotnet-version: '10.x' + + - name: Build with dotnet + run: dotnet build --configuration Release + + - name: Test with dotnet + run: dotnet test --configuration Release + + - name: dotnet publish + if: github.event_name != 'pull_request' + run: dotnet publish Antigen/Antigen.csproj -c Release -o artifacts/publish + + - name: Upload artifact for deployment job + uses: actions/upload-artifact@v4 + if: github.event_name != 'pull_request' + with: + name: antigen + path: artifacts/publish + diff --git a/Antigen.sln b/Antigen.sln index 4fe5c9f..816b532 100644 --- a/Antigen.sln +++ b/Antigen.sln @@ -1,48 +1,49 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.7.34003.232 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Antigen", "Antigen\Antigen.csproj", "{4BA8106C-4D64-4F76-AA49-3A669AB31B82}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{9FA00618-BD61-41BA-9044-1A08C274AA24}" - ProjectSection(SolutionItems) = preProject - .editorconfig = .editorconfig - EndProjectSection -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Trimmer", "Trimmer\Trimmer.csproj", "{CE027BEA-870D-4821-886E-71E3F209A18B}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ExecutionEngine", "ExecutionEngine\ExecutionEngine.csproj", "{1A2BB825-9952-479B-8F6A-7F0543B0A4FC}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Utilities", "Utilities\Utilities.csproj", "{83B6CBCC-4955-436B-9380-EE50CDC69429}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {4BA8106C-4D64-4F76-AA49-3A669AB31B82}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {4BA8106C-4D64-4F76-AA49-3A669AB31B82}.Debug|Any CPU.Build.0 = Debug|Any CPU - {4BA8106C-4D64-4F76-AA49-3A669AB31B82}.Release|Any CPU.ActiveCfg = Release|Any CPU - {4BA8106C-4D64-4F76-AA49-3A669AB31B82}.Release|Any CPU.Build.0 = Release|Any CPU - {CE027BEA-870D-4821-886E-71E3F209A18B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {CE027BEA-870D-4821-886E-71E3F209A18B}.Debug|Any CPU.Build.0 = Debug|Any CPU - {CE027BEA-870D-4821-886E-71E3F209A18B}.Release|Any CPU.ActiveCfg = Release|Any CPU - {CE027BEA-870D-4821-886E-71E3F209A18B}.Release|Any CPU.Build.0 = Release|Any CPU - {1A2BB825-9952-479B-8F6A-7F0543B0A4FC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {1A2BB825-9952-479B-8F6A-7F0543B0A4FC}.Debug|Any CPU.Build.0 = Debug|Any CPU - {1A2BB825-9952-479B-8F6A-7F0543B0A4FC}.Release|Any CPU.ActiveCfg = Release|Any CPU - {1A2BB825-9952-479B-8F6A-7F0543B0A4FC}.Release|Any CPU.Build.0 = Release|Any CPU - {83B6CBCC-4955-436B-9380-EE50CDC69429}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {83B6CBCC-4955-436B-9380-EE50CDC69429}.Debug|Any CPU.Build.0 = Debug|Any CPU - {83B6CBCC-4955-436B-9380-EE50CDC69429}.Release|Any CPU.ActiveCfg = Release|Any CPU - {83B6CBCC-4955-436B-9380-EE50CDC69429}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {C8A4C87B-214A-406B-9FC6-68267A4E1493} - EndGlobalSection -EndGlobal + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 18 +VisualStudioVersion = 18.7.11811.120 insiders +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Antigen", "Antigen\Antigen.csproj", "{4BA8106C-4D64-4F76-AA49-3A669AB31B82}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{9FA00618-BD61-41BA-9044-1A08C274AA24}" + ProjectSection(SolutionItems) = preProject + .editorconfig = .editorconfig + .github\workflows\build.yml = .github\workflows\build.yml + EndProjectSection +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Trimmer", "Trimmer\Trimmer.csproj", "{CE027BEA-870D-4821-886E-71E3F209A18B}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ExecutionEngine", "ExecutionEngine\ExecutionEngine.csproj", "{1A2BB825-9952-479B-8F6A-7F0543B0A4FC}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Utilities", "Utilities\Utilities.csproj", "{83B6CBCC-4955-436B-9380-EE50CDC69429}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {4BA8106C-4D64-4F76-AA49-3A669AB31B82}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4BA8106C-4D64-4F76-AA49-3A669AB31B82}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4BA8106C-4D64-4F76-AA49-3A669AB31B82}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4BA8106C-4D64-4F76-AA49-3A669AB31B82}.Release|Any CPU.Build.0 = Release|Any CPU + {CE027BEA-870D-4821-886E-71E3F209A18B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {CE027BEA-870D-4821-886E-71E3F209A18B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {CE027BEA-870D-4821-886E-71E3F209A18B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {CE027BEA-870D-4821-886E-71E3F209A18B}.Release|Any CPU.Build.0 = Release|Any CPU + {1A2BB825-9952-479B-8F6A-7F0543B0A4FC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {1A2BB825-9952-479B-8F6A-7F0543B0A4FC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1A2BB825-9952-479B-8F6A-7F0543B0A4FC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {1A2BB825-9952-479B-8F6A-7F0543B0A4FC}.Release|Any CPU.Build.0 = Release|Any CPU + {83B6CBCC-4955-436B-9380-EE50CDC69429}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {83B6CBCC-4955-436B-9380-EE50CDC69429}.Debug|Any CPU.Build.0 = Debug|Any CPU + {83B6CBCC-4955-436B-9380-EE50CDC69429}.Release|Any CPU.ActiveCfg = Release|Any CPU + {83B6CBCC-4955-436B-9380-EE50CDC69429}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {C8A4C87B-214A-406B-9FC6-68267A4E1493} + EndGlobalSection +EndGlobal diff --git a/Antigen/Antigen.csproj b/Antigen/Antigen.csproj index a2aee0a..eec7988 100644 --- a/Antigen/Antigen.csproj +++ b/Antigen/Antigen.csproj @@ -2,7 +2,7 @@ Exe - net9.0 + net10.0 Antigen ab71806a-3bd8-4fb1-b0e2-9450aec41a9f True @@ -21,9 +21,6 @@ false - - https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8/nuget/v3/index.json - diff --git a/ExecutionEngine/ExecutionEngine.csproj b/ExecutionEngine/ExecutionEngine.csproj index 6a3b486..1979790 100644 --- a/ExecutionEngine/ExecutionEngine.csproj +++ b/ExecutionEngine/ExecutionEngine.csproj @@ -2,7 +2,7 @@ Exe - net9.0 + net10.0 enable enable diff --git a/Trimmer/Trimmer.csproj b/Trimmer/Trimmer.csproj index 4c6a9ed..fb962e0 100644 --- a/Trimmer/Trimmer.csproj +++ b/Trimmer/Trimmer.csproj @@ -2,7 +2,7 @@ Exe - net9.0 + net10.0 True diff --git a/Utilities/Utilities.csproj b/Utilities/Utilities.csproj index 7452827..027461d 100644 --- a/Utilities/Utilities.csproj +++ b/Utilities/Utilities.csproj @@ -1,7 +1,7 @@  - net9.0 + net10.0 enable enable From 51abda024d87eef9f15f00f3b07346f11e6940e6 Mon Sep 17 00:00:00 2001 From: Andrii Kurdiumov Date: Sat, 16 May 2026 18:19:26 +0200 Subject: [PATCH 2/2] Hopefully I guess right what is CI pipeline --- progress.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/progress.md b/progress.md index 1cd1d45..2a40abf 100644 --- a/progress.md +++ b/progress.md @@ -23,5 +23,4 @@ TODO: - Arrays - Various configurations - CSEs -- Classes -- CI pipeline \ No newline at end of file +- Classes \ No newline at end of file