Skip to content

Commit f2156d2

Browse files
committed
try ci without specifying .net versions
1 parent a018572 commit f2156d2

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,19 @@ on:
88
jobs:
99
build-and-test:
1010
runs-on: windows-latest
11+
strategy:
12+
matrix:
13+
dotnet-version: ["8.0.x", "9.0.x"]
1114

1215
steps:
1316
- name: Checkout code
1417
uses: actions/checkout@v4
1518

16-
- name: Setup .NET
17-
uses: actions/setup-dotnet@v4
18-
with:
19-
dotnet-version: 8
19+
# If preinstalled in windows-latest, this step can be skipped
20+
# - name: Setup .NET ${{ matrix.dotnet-version }}
21+
# uses: actions/setup-dotnet@v4
22+
# with:
23+
# dotnet-version: ${{ matrix.dotnet-version }}
2024

2125
- name: Build
2226
run: dotnet build --configuration Release

0 commit comments

Comments
 (0)