File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,11 +11,12 @@ concurrency:
1111jobs :
1212 tests :
1313 runs-on : ubuntu-latest
14- timeout-minutes : 15
14+ name : Tests dotnet ${{ matrix.dotnet-version }}
15+ timeout-minutes : 60
1516 strategy :
17+ fail-fast : false
1618 matrix :
1719 dotnet-version : [8, 9, 10]
18- project : ['.']
1920 steps :
2021 - name : Checkout code
2122 uses : actions/checkout@v6
@@ -27,10 +28,42 @@ jobs:
2728
2829 - name : Build projects
2930 shell : bash
30- working-directory : ${{ matrix.project }}
31- run : dotnet build ./all.csproj
31+ run : dotnet build ./all.csproj -f net${{ matrix.dotnet-version }}.0
3232
3333 - name : Run tests
3434 shell : bash
35- working-directory : ${{ matrix.project }}
36- run : dotnet test ./all.csproj /p:BuildTestsOnly=true --no-build
35+ run : dotnet test ./all.csproj /p:BuildTestsOnly=true --no-build -f net${{ matrix.dotnet-version }}.0
36+
37+ benchmarks :
38+ runs-on : ubuntu-latest
39+ name : Build Benchmarks
40+ timeout-minutes : 15
41+ steps :
42+ - name : Checkout code
43+ uses : actions/checkout@v6
44+
45+ - name : Setup .NET
46+ uses : actions/setup-dotnet@v5
47+ with :
48+ dotnet-version : 10
49+
50+ - name : Build benchmarks
51+ shell : bash
52+ run : dotnet build ./all.csproj /p:BuildBenchmarksOnly=true -c Release -f net10.0
53+
54+ samples :
55+ runs-on : ubuntu-latest
56+ name : Build Samples
57+ timeout-minutes : 15
58+ steps :
59+ - name : Checkout code
60+ uses : actions/checkout@v6
61+
62+ - name : Setup .NET
63+ uses : actions/setup-dotnet@v5
64+ with :
65+ dotnet-version : 10
66+
67+ - name : Build samples
68+ shell : bash
69+ run : dotnet build ./all.csproj /p:BuildSamplesOnly=true -c Release -f net10.0
Original file line number Diff line number Diff line change 22
33 <PropertyGroup >
44 <BuildTestsOnly >false</BuildTestsOnly >
5+ <BuildSamplesOnly >false</BuildSamplesOnly >
6+ <BuildBenchmarksOnly >false</BuildBenchmarksOnly >
57 <IncludeInSolutionFile >false</IncludeInSolutionFile >
68 </PropertyGroup >
79
810 <ItemGroup Condition =" '$(BuildTestsOnly)' != 'true'" >
9- <ProjectReference Include =" **/*.csproj" />
11+ <ProjectReference Include =" **/*.csproj" Exclude = " benchmark/**/*.csproj;samples/**/*.csproj " />
1012 </ItemGroup >
1113
1214 <ItemGroup Condition =" '$(BuildTestsOnly)' == 'true'" >
13- <ProjectReference Include =" **/test/**/*.csproj" />
15+ <ProjectReference Include =" **/test/**/*.csproj" Exclude =" benchmark/**/*.csproj;samples/**/*.csproj" />
16+ </ItemGroup >
17+
18+ <ItemGroup Condition =" '$(BuildSamplesOnly)' == 'true'" >
19+ <ProjectReference Include =" samples/**/*.csproj" />
20+ </ItemGroup >
21+
22+ <ItemGroup Condition =" '$(BuildBenchmarksOnly)' == 'true'" >
23+ <ProjectReference Include =" benchmark/**/*.csproj" />
1424 </ItemGroup >
1525
1626</Project >
You can’t perform that action at this time.
0 commit comments