Skip to content

Commit c8dcf95

Browse files
Address build/test issues in CI/CD (#717)
1 parent 42e4c5d commit c8dcf95

File tree

5 files changed

+17
-10
lines changed

5 files changed

+17
-10
lines changed

.github/workflows/build.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ on:
1212

1313
jobs:
1414
build:
15+
strategy:
16+
matrix:
17+
os: [ubuntu-latest, windows-latest, macos-latest]
1518

16-
runs-on: ubuntu-latest
19+
runs-on: ${{ matrix.os }}
1720

1821
steps:
1922
- uses: actions/checkout@v4
@@ -22,8 +25,6 @@ jobs:
2225
uses: actions/setup-dotnet@v4
2326
with:
2427
dotnet-version: |
25-
3.1.x
26-
6.0.x
2728
8.0.x
2829
9.0.x
2930

.github/workflows/docs.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ jobs:
3030
uses: actions/setup-dotnet@v4
3131
with:
3232
dotnet-version: |
33-
3.1.x
34-
6.0.x
3533
8.0.x
3634
9.0.x
3735
@@ -41,7 +39,7 @@ jobs:
4139
run: dotnet build -c Release --no-restore
4240

4341
- name: Build documentation
44-
run: dotnet run -f net8.0 -c Release --no-build
42+
run: dotnet run -f net9.0 -c Release --no-build
4543
working-directory: Docs/SuperLinq.Docs
4644

4745
- name: Setup Pages

.github/workflows/release.yml

-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ jobs:
2121
uses: actions/setup-dotnet@v4
2222
with:
2323
dotnet-version: |
24-
3.1.x
25-
6.0.x
2624
8.0.x
2725
9.0.x
2826

Tests/SuperLinq.Async.Tests/SuperLinq.Async.Tests.csproj

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net47;net8.0;net9.0</TargetFrameworks>
4+
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
55

66
<IsPackable>false</IsPackable>
77
<AnalysisLevel>latest-recommended</AnalysisLevel>
88

99
<PolySharpExcludeGeneratedTypes>System.Runtime.CompilerServices.ModuleInitializerAttribute</PolySharpExcludeGeneratedTypes>
1010
</PropertyGroup>
1111

12+
<PropertyGroup Condition="$([System.OperatingSystem]::IsWindows())">
13+
<TargetFrameworks>net47;$(TargetFrameworks)</TargetFrameworks>
14+
<RuntimeIdentifiers>win-x86;win-x64</RuntimeIdentifiers>
15+
</PropertyGroup>
16+
1217
<ItemGroup>
1318
<ProjectReference Include="..\..\Source\SuperLinq\SuperLinq.csproj" />
1419
<ProjectReference Include="..\..\Source\SuperLinq.Async\SuperLinq.Async.csproj" />

Tests/SuperLinq.Tests/SuperLinq.Tests.csproj

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net47;net8.0;net9.0</TargetFrameworks>
4+
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
55

66
<IsPackable>false</IsPackable>
77
<AnalysisLevel>latest-recommended</AnalysisLevel>
88

99
<PolySharpExcludeGeneratedTypes>System.Runtime.CompilerServices.ModuleInitializerAttribute</PolySharpExcludeGeneratedTypes>
1010
</PropertyGroup>
1111

12+
<PropertyGroup Condition="$([System.OperatingSystem]::IsWindows())">
13+
<TargetFrameworks>net47;$(TargetFrameworks)</TargetFrameworks>
14+
<RuntimeIdentifiers>win-x86;win-x64</RuntimeIdentifiers>
15+
</PropertyGroup>
16+
1217
<ItemGroup>
1318
<ProjectReference Include="..\..\Source\SuperLinq\SuperLinq.csproj" />
1419
</ItemGroup>

0 commit comments

Comments
 (0)