Skip to content

Commit

Permalink
Address build/test issues in CI/CD (#717)
Browse files Browse the repository at this point in the history
  • Loading branch information
viceroypenguin authored Jan 11, 2025
1 parent 42e4c5d commit c8dcf95
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 10 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ on:

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]

runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4
Expand All @@ -22,8 +25,6 @@ jobs:
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
3.1.x
6.0.x
8.0.x
9.0.x
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ jobs:
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
3.1.x
6.0.x
8.0.x
9.0.x
Expand All @@ -41,7 +39,7 @@ jobs:
run: dotnet build -c Release --no-restore

- name: Build documentation
run: dotnet run -f net8.0 -c Release --no-build
run: dotnet run -f net9.0 -c Release --no-build
working-directory: Docs/SuperLinq.Docs

- name: Setup Pages
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ jobs:
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
3.1.x
6.0.x
8.0.x
9.0.x
Expand Down
7 changes: 6 additions & 1 deletion Tests/SuperLinq.Async.Tests/SuperLinq.Async.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net47;net8.0;net9.0</TargetFrameworks>
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>

<IsPackable>false</IsPackable>
<AnalysisLevel>latest-recommended</AnalysisLevel>

<PolySharpExcludeGeneratedTypes>System.Runtime.CompilerServices.ModuleInitializerAttribute</PolySharpExcludeGeneratedTypes>
</PropertyGroup>

<PropertyGroup Condition="$([System.OperatingSystem]::IsWindows())">
<TargetFrameworks>net47;$(TargetFrameworks)</TargetFrameworks>
<RuntimeIdentifiers>win-x86;win-x64</RuntimeIdentifiers>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\..\Source\SuperLinq\SuperLinq.csproj" />
<ProjectReference Include="..\..\Source\SuperLinq.Async\SuperLinq.Async.csproj" />
Expand Down
7 changes: 6 additions & 1 deletion Tests/SuperLinq.Tests/SuperLinq.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net47;net8.0;net9.0</TargetFrameworks>
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>

<IsPackable>false</IsPackable>
<AnalysisLevel>latest-recommended</AnalysisLevel>

<PolySharpExcludeGeneratedTypes>System.Runtime.CompilerServices.ModuleInitializerAttribute</PolySharpExcludeGeneratedTypes>
</PropertyGroup>

<PropertyGroup Condition="$([System.OperatingSystem]::IsWindows())">
<TargetFrameworks>net47;$(TargetFrameworks)</TargetFrameworks>
<RuntimeIdentifiers>win-x86;win-x64</RuntimeIdentifiers>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\..\Source\SuperLinq\SuperLinq.csproj" />
</ItemGroup>
Expand Down

0 comments on commit c8dcf95

Please sign in to comment.