Skip to content

Commit 16a9115

Browse files
committed
Ensure build uses .NET6
1 parent 3348916 commit 16a9115

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,26 +31,34 @@ jobs:
3131
submodules: recursive
3232
fetch-depth: 0
3333

34+
- uses: actions/setup-dotnet@v1
35+
with:
36+
dotnet-version: '6.0.x'
37+
3438
- name: ✓ ensure format
3539
run: |
36-
dotnet tool update -g dotnet-format --version 5.0.*
3740
dotnet restore
38-
dotnet format --check -v:diag
41+
dotnet format --verify-no-changes -v:diag
3942
4043
build:
4144
name: build-${{ matrix.os }}
4245
needs: dotnet-format
4346
runs-on: ${{ matrix.os }}
4447
strategy:
4548
matrix:
46-
os: [ubuntu-latest, windows-latest, macOS-latest]
49+
os: [ubuntu-latest, windows-2022, macOS-latest]
4750
steps:
4851
- name: 🤘 checkout
4952
uses: actions/checkout@v2
5053
with:
5154
submodules: recursive
5255
fetch-depth: 0
5356

57+
- uses: actions/setup-dotnet@v1
58+
if: matrix.os != 'windows-2022'
59+
with:
60+
dotnet-version: '6.0.x'
61+
5462
- name: 🙏 build
5563
run: dotnet build -m:1 -p:VersionLabel="$GITHUB_REF.$GITHUB_RUN_NUMBER"
5664

.github/workflows/publish.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ jobs:
2121
submodules: recursive
2222
fetch-depth: 0
2323

24+
- uses: actions/setup-dotnet@v1
25+
with:
26+
dotnet-version: '6.0.x'
27+
2428
- name: 🙏 build
2529
run: dotnet build -m:1 -p:version=${GITHUB_REF#refs/*/v}
2630

0 commit comments

Comments
 (0)