Skip to content

Commit 65a7073

Browse files
CopilotMichaConrad
andcommitted
Exclude CDT.Comparison.Benchmarks from CI/CD build pipeline
Co-authored-by: MichaCo <5837539+MichaCo@users.noreply.github.com>
1 parent d53571b commit 65a7073

1 file changed

Lines changed: 19 additions & 8 deletions

File tree

.github/workflows/ci-cd.yml

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,15 @@ jobs:
3838
8.0.x
3939
10.0.x
4040
41-
# Windows: restore full solution (includes Windows-only CDT.Viz)
41+
# Windows: restore cross-platform + Windows-only projects (CDT.Viz targets Windows only)
42+
# CDT.Comparison.Benchmarks is excluded: its native cmake/cargo build is too slow for CI
4243
- name: Restore dependencies
4344
if: runner.os == 'Windows'
44-
run: dotnet restore
45+
run: |
46+
dotnet restore src/CDT.Core/CDT.Core.csproj
47+
dotnet restore test/CDT.Tests/CDT.Tests.csproj
48+
dotnet restore benchmark/CDT.Benchmarks/CDT.Benchmarks.csproj
49+
dotnet restore viz/CDT.Viz/CDT.Viz.csproj
4550
4651
# Linux: restore only cross-platform projects (CDT.Viz targets Windows only)
4752
- name: Restore dependencies
@@ -50,10 +55,15 @@ jobs:
5055
dotnet restore src/CDT.Core/CDT.Core.csproj
5156
dotnet restore test/CDT.Tests/CDT.Tests.csproj
5257
53-
# Windows: build full solution
58+
# Windows: build cross-platform + Windows-only projects
59+
# CDT.Comparison.Benchmarks is excluded: its native cmake/cargo build is too slow for CI
5460
- name: Build
5561
if: runner.os == 'Windows'
56-
run: dotnet build --no-restore -c Release
62+
run: |
63+
dotnet build --no-restore -c Release src/CDT.Core/CDT.Core.csproj
64+
dotnet build --no-restore -c Release test/CDT.Tests/CDT.Tests.csproj
65+
dotnet build --no-restore -c Release benchmark/CDT.Benchmarks/CDT.Benchmarks.csproj
66+
dotnet build --no-restore -c Release viz/CDT.Viz/CDT.Viz.csproj
5767
5868
# Linux: build only cross-platform projects
5969
- name: Build
@@ -62,10 +72,10 @@ jobs:
6272
dotnet build --no-restore -c Release src/CDT.Core/CDT.Core.csproj
6373
dotnet build --no-restore -c Release test/CDT.Tests/CDT.Tests.csproj
6474
65-
# Windows: test full solution
75+
# Windows: test CDT.Tests only (CDT.Comparison.Benchmarks excluded from CI build)
6676
- name: Test
6777
if: runner.os == 'Windows'
68-
run: dotnet test --no-build -c Release --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura /p:CoverletOutput=${{ github.workspace }}/coverage/coverage.cobertura.xml
78+
run: dotnet test --no-build -c Release --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura /p:CoverletOutput=${{ github.workspace }}/coverage/coverage.cobertura.xml test/CDT.Tests/CDT.Tests.csproj
6979

7080
# Linux: test only CDT.Tests (CDT.Viz has no tests; benchmark is not a test project)
7181
- name: Test
@@ -110,11 +120,12 @@ jobs:
110120
with:
111121
fetch-depth: 0 # Required for SourceLink
112122

123+
# Only CDT.Core is needed for pack; CDT.Comparison.Benchmarks is excluded
113124
- name: Restore dependencies
114-
run: dotnet restore
125+
run: dotnet restore src/CDT.Core/CDT.Core.csproj
115126

116127
- name: Build
117-
run: dotnet build --no-restore -c Release
128+
run: dotnet build --no-restore -c Release src/CDT.Core/CDT.Core.csproj
118129

119130
- name: Pack
120131
shell: pwsh

0 commit comments

Comments
 (0)