Skip to content

Commit 3f7a499

Browse files
committed
GitHub Actions: use .NET 7 SDK for .NET 6 build
Our `PublicApi` verification test passes on AppVeyor while it fails on GitHub Actions. One difference between the two is that AppVeyor uses v7 of the .NET SDK, while GitHub Actions uses v6. Installing both .NET 6 and 7 will hopefully resolve the `PublicApi` test failure with GitHub Actions builds.
1 parent 876efea commit 3f7a499

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,18 @@ jobs:
3535
with:
3636
dotnet-version: 3.1.x
3737

38-
# Building requires an up-to-date .NET SDK.
39-
4038
- name: Install .NET 6.0
4139
uses: actions/setup-dotnet@v1
4240
with:
4341
dotnet-version: 6.0.x
4442

43+
# Building requires an up-to-date .NET SDK.
44+
45+
- name: Install .NET 7.0
46+
uses: actions/setup-dotnet@v1
47+
with:
48+
dotnet-version: 7.0.x
49+
4550
# -----
4651
# Build
4752
# -----

0 commit comments

Comments
 (0)