Skip to content

Commit e9e9af7

Browse files
author
Jose A. Fernandez
committed
Update CI workflow for .NET on Windows and simplify the strategy matrix.
1 parent 9149b2a commit e9e9af7

File tree

1 file changed

+5
-18
lines changed

1 file changed

+5
-18
lines changed

src/.github/workflows/dotnet-core.yml

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,18 @@ on:
88

99
jobs:
1010
build-and-test:
11-
runs-on: ${{ matrix.os }}
11+
runs-on: windows-latest
1212
strategy:
1313
matrix:
14-
include:
15-
- os: ubuntu-latest
16-
dotnet-version: '8.0.x'
17-
test-framework: 'net8.0'
18-
- os: ubuntu-latest
19-
dotnet-version: '9.0.x'
20-
test-framework: 'net9.0'
21-
- os: windows-latest
22-
dotnet-version: '8.0.x'
23-
test-framework: 'net48'
24-
- os: windows-latest
25-
dotnet-version: '8.0.x'
26-
test-framework: 'net481'
14+
test-framework: [ 'net8.0', 'net9.0', 'net48', 'net481' ]
2715
steps:
2816
- uses: actions/checkout@v2
29-
- name: Install OpenSSL (Ubuntu only)
30-
if: runner.os == 'Linux'
31-
run: sudo apt-get update && sudo apt-get install -y libssl-dev
3217
- name: Setup .NET
3318
uses: actions/setup-dotnet@v3
3419
with:
35-
dotnet-version: ${{ matrix.dotnet-version }}
20+
dotnet-version: |
21+
8.0.x
22+
9.0.x
3623
- name: Install dependencies
3724
working-directory: src
3825
run: dotnet restore

0 commit comments

Comments
 (0)