-
-
Notifications
You must be signed in to change notification settings - Fork 59
99 lines (99 loc) · 2.8 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
name: ci
on:
push:
branches: [main, release-*]
pull_request:
permissions: read-all
env:
DOTNET_NOLOGO: true
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
jobs:
ci:
strategy:
fail-fast: false
matrix:
include:
# old macOS, latest LTS
- job:
os: macos-11
tests:
framework: net8.0
sdk: "8.0.101"
sdk-major-minor: "8.0"
# old macOS, latest LTS
- job:
os: macos-12
tests:
framework: net8.0
sdk: "8.0.101"
sdk-major-minor: "8.0"
# current macOS, latest LTS and latest
- job:
os: macos-13
tests:
framework: net8.0
sdk: "8.0.101"
sdk-major-minor: "8.0"
# old Linux, latest LTS
- job:
os: ubuntu-20.04
tests:
framework: net8.0
sdk: "8.0.101"
sdk-major-minor: "8.0"
# current Linux, all
- job:
os: ubuntu-22.04
tests:
framework: net6.0
sdk: "6.0.418"
sdk-major-minor: "6.0"
- job:
os: ubuntu-22.04
tests:
framework: net7.0
sdk: "7.0.405"
sdk-major-minor: "7.0"
- job:
os: ubuntu-22.04
upload: true
tests:
framework: net8.0
sdk: "8.0.101"
sdk-major-minor: "8.0"
# old Windows, latest LTS
- job:
os: windows-2019
tests:
framework: net8.0
sdk: "8.0.101"
sdk-major-minor: "8.0"
# current Windows, latest LTS and latest
- job:
os: windows-2022
tests:
framework: net8.0
sdk: "8.0.101"
sdk-major-minor: "8.0"
name: ${{ matrix.job.os }}-sdk-${{ matrix.tests.sdk-major-minor }}
runs-on: ${{ matrix.job.os }}
steps:
- uses: actions/[email protected]
with:
dotnet-version: |
${{ matrix.tests.sdk }}
8.0.101
- run: dotnet --info
- run: git --version
- uses: actions/[email protected]
- env:
CI_NUMBER: ${{ github.run_number }}
MINVER_VERSION: ${{ vars.MINVER_VERSION }}
MINVER_TESTS_SDK: ${{ matrix.tests.sdk }}
MINVER_TESTS_FRAMEWORK: ${{ matrix.tests.framework }}
run: ./build --verbose
- if: matrix.job.upload
uses: actions/[email protected]
with:
name: NuGet packages
path: ./**/*.nupkg