Skip to content

Commit 8209575

Browse files
Update build matrix and dotnet SDK setup
1 parent 2e13b2f commit 8209575

1 file changed

Lines changed: 40 additions & 9 deletions

File tree

.github/workflows/build-and-test.yml

Lines changed: 40 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,54 @@ jobs:
1515
strategy:
1616
matrix:
1717
options:
18+
- os: ubuntu-latest
19+
framework: net6.0
20+
sdk: 6.0.x
21+
runtime: -x64
22+
codecov: false
1823
- os: macos-latest
19-
framework: netcoreapp3.1
24+
framework: net6.0
25+
sdk: 6.0.x
26+
runtime: -x64
27+
codecov: false
28+
- os: windows-latest
29+
framework: net6.0
30+
sdk: 6.0.x
31+
runtime: -x64
32+
codecov: true
33+
- os: ubuntu-latest
34+
framework: net5.0
35+
sdk: 5.0.x
36+
runtime: -x64
37+
codecov: false
38+
- os: macos-latest
39+
framework: net5.0
40+
sdk: 5.0.x
41+
runtime: -x64
42+
codecov: false
43+
- os: windows-latest
44+
framework: net5.0
45+
sdk: 5.0.x
2046
runtime: -x64
2147
codecov: false
2248
- os: ubuntu-latest
2349
framework: netcoreapp3.1
50+
sdk: 3.1.x
51+
runtime: -x64
52+
codecov: false
53+
- os: macos-latest
54+
framework: netcoreapp3.1
55+
sdk: 3.1.x
2456
runtime: -x64
2557
codecov: false
2658
- os: windows-latest
2759
framework: netcoreapp3.1
60+
sdk: 3.1.x
2861
runtime: -x64
29-
codecov: true
62+
codecov: false
3063
- os: windows-latest
3164
framework: netcoreapp2.1
65+
sdk: 2.1.x
3266
runtime: -x64
3367
codecov: false
3468

@@ -62,8 +96,8 @@ jobs:
6296
- name: Git Pull LFS
6397
run: git lfs pull
6498

65-
- name: Install NuGet
66-
uses: NuGet/setup-nuget@v1
99+
- name: Install NuGet
100+
uses: NuGet/setup-nuget@v1
67101

68102
- name: NuGet Setup Cache
69103
uses: actions/cache@v2
@@ -102,13 +136,10 @@ jobs:
102136
s3rver -d . &
103137
104138
- name: DotNet Setup
139+
if: ${{matrix.options.sdk}}
105140
uses: actions/setup-dotnet@v1
106141
with:
107-
dotnet-version: |
108-
6.0.x
109-
5.0.x
110-
3.1.x
111-
2.1.x
142+
dotnet-version: ${{matrix.options.sdk}}
112143

113144
- name: DotNet Build
114145
shell: pwsh

0 commit comments

Comments
 (0)