Skip to content

Commit 9f224d8

Browse files
committed
Further fixes to the .NET CI
1 parent 1f33e70 commit 9f224d8

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

.github/workflows/cicd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
dotnet-version: ${{ matrix.dotnet-version }}
3434

3535
- name: "Restore"
36-
run: dotnet restore --framework ${{ matrix.dotnet-moniker }}
36+
run: dotnet restore -p:TargetFramework=${{ matrix.dotnet-moniker }}
3737

3838
- name: "Build"
3939
run: dotnet build -c Release --no-restore --framework ${{ matrix.dotnet-moniker }}

.github/workflows/pr-build.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,13 @@ jobs:
1616

1717
strategy:
1818
matrix:
19-
dotnet-version: ['6.0.x', '7.0.x', '8.0.x']
19+
include:
20+
- dotnet-version: '6.0.x'
21+
dotnet-moniker: 'net6.0'
22+
- dotnet-version: '7.0.x'
23+
dotnet-moniker: 'net7.0'
24+
- dotnet-version: '8.0.x'
25+
dotnet-moniker: 'net8.0'
2026

2127
steps:
2228
- uses: actions/checkout@v4
@@ -27,10 +33,10 @@ jobs:
2733
dotnet-version: ${{ matrix.dotnet-version }}
2834

2935
- name: "Restore"
30-
run: dotnet restore
36+
run: dotnet restore -p:TargetFramework=${{ matrix.dotnet-moniker }}
3137

3238
- name: "Build"
33-
run: dotnet build -c Release --no-restore
39+
run: dotnet build -c Release --no-restore --framework ${{ matrix.dotnet-moniker }}
3440

3541
- name: "Test"
36-
run: dotnet test -c Release --no-restore --no-build --verbosity normal
42+
run: dotnet test -c Release --no-restore --no-build --verbosity normal --framework ${{ matrix.dotnet-moniker }}

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
dotnet-version: ${{ matrix.dotnet-version }}
4343

4444
- name: "Restore"
45-
run: dotnet restore
45+
run: dotnet restore -p:TargetFramework=${{ matrix.framework-moniker }}
4646

4747
- name: "Build"
4848
run: dotnet build -c Release --no-restore --framework ${{ matrix.framework-moniker }}

0 commit comments

Comments
 (0)