Skip to content

Commit e39e9cf

Browse files
committed
Fix CI workflow: install both .NET 8 and 9 SDKs
- Install both .NET 8.0 and 9.0 SDKs for multi-targeting - Simplify build matrix to only vary by OS - Fix coverage upload condition
1 parent f81bef3 commit e39e9cf

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,16 @@ jobs:
1818
strategy:
1919
matrix:
2020
os: [ubuntu-latest, windows-latest, macos-latest]
21-
dotnet-version: ['8.0.x', '9.0.x']
2221

2322
steps:
2423
- uses: actions/checkout@v4
2524

2625
- name: Setup .NET
2726
uses: actions/setup-dotnet@v4
2827
with:
29-
dotnet-version: ${{ matrix.dotnet-version }}
28+
dotnet-version: |
29+
8.0.x
30+
9.0.x
3031
3132
- name: Restore dependencies
3233
run: dotnet restore
@@ -38,7 +39,7 @@ jobs:
3839
run: dotnet test --no-build --configuration Release --verbosity normal --logger "console;verbosity=detailed" --collect:"XPlat Code Coverage"
3940

4041
- name: Upload coverage to Codecov
41-
if: matrix.os == 'ubuntu-latest' && matrix.dotnet-version == '9.0.x'
42+
if: matrix.os == 'ubuntu-latest'
4243
uses: codecov/codecov-action@v4
4344
with:
4445
file: '**/coverage.cobertura.xml'

0 commit comments

Comments
 (0)